[wp-meta] [Making WordPress.org] #5119: Searching for a country location returns world-wide results
Making WordPress.org
noreply at wordpress.org
Mon Mar 30 00:59:12 UTC 2020
#5119: Searching for a country location returns world-wide results
------------------------+---------------------
Reporter: dd32 | Owner: dd32
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Events API | Resolution: fixed
Keywords: |
------------------------+---------------------
Description changed by dd32:
Old description:
> A search for a country-level location, such as `Germany`, `Australia` or
> `Indonesia` currently results in events world-wide being returned.
>
> For example: https://api.wordpress.org/events/1.0/?location=Germany
>
> This should be restricted to returning all events in that country-
> location, rather than next-event-worldwide.
New description:
A search for a country-level location, such as `Germany`, `Australia` or
`Indonesia` currently results in events world-wide being returned.
For example: https://api.wordpress.org/events/1.0/?location=Germany
currently returns:
{{{
{
"sandboxed": false,
"location": {
"country": "DE",
"description": "Germany"
},
"events": [
{
"type": "meetup",
"title": "WordPressもくもく会@千葉 20年3月の会",
"url": "https://www.meetup.com/Chiba-WordPress-
Meetup/events/269174440/",
"meetup": "Chiba WordPress Meetup",
"meetup_url": "https://www.meetup.com/Chiba-WordPress-Meetup/",
"date": "2020-03-29 14:00:00",
"end_date": "2020-03-29 18:00:00",
"location": {
"location": "online",
"country": "US",
"latitude": 35.610000610352,
"longitude": 140.11000061035
}
},
{
"type": "meetup",
"title": "WordPress Warwickshire Kickoff ",
"url": "https://www.meetup.com/WordPress-Warwickshire-
Meetup/events/268859850/",
"meetup": "WordPress Warwickshire Meetup",
"meetup_url": "https://www.meetup.com/WordPress-Warwickshire-
Meetup/",
"date": "2020-03-30 18:00:00",
"end_date": "2020-03-30 19:30:00",
"location": {
"location": "Warwickshire, United Kingdom",
"country": "gb",
"latitude": 52.497497558594,
"longitude": -1.4766750335693
}
},
{
"type": "meetup",
"title": "WordPress Hangout (Online)",
"url": "https://www.meetup.com/WordPress-Montclair-
Meetup/events/269614290/",
"meetup": "WordPress Montclair Meetup",
"meetup_url": "https://www.meetup.com/WordPress-Montclair-Meetup/",
"date": "2020-03-30 19:00:00",
"end_date": "2020-03-30 21:00:00",
"location": {
"location": "online",
"country": "FI",
"latitude": 40.810001373291,
"longitude": -74.220001220703
}
},
...
}}}
This should be restricted to returning all events in that country-
location, rather than next-event-worldwide.
--
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5119#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list