Making WordPress.org

Changes between Initial Version and Version 2 of Ticket #5119


Ignore:
Timestamp:
03/30/2020 12:59:12 AM (4 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5119

    • Property Owner set to dd32
    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #5119 – Description

    initial v2  
    11A search for a country-level location, such as `Germany`, `Australia` or `Indonesia` currently results in events world-wide being returned.
    22
    3 For example: https://api.wordpress.org/events/1.0/?location=Germany
     3For example: https://api.wordpress.org/events/1.0/?location=Germany currently returns:
     4{{{
     5{
     6  "sandboxed": false,
     7  "location": {
     8    "country": "DE",
     9    "description": "Germany"
     10  },
     11  "events": [
     12    {
     13      "type": "meetup",
     14      "title": "WordPressもくもく会@千葉 20年3月の会",
     15      "url": "https://www.meetup.com/Chiba-WordPress-Meetup/events/269174440/",
     16      "meetup": "Chiba WordPress Meetup",
     17      "meetup_url": "https://www.meetup.com/Chiba-WordPress-Meetup/",
     18      "date": "2020-03-29 14:00:00",
     19      "end_date": "2020-03-29 18:00:00",
     20      "location": {
     21        "location": "online",
     22        "country": "US",
     23        "latitude": 35.610000610352,
     24        "longitude": 140.11000061035
     25      }
     26    },
     27    {
     28      "type": "meetup",
     29      "title": "WordPress Warwickshire Kickoff ",
     30      "url": "https://www.meetup.com/WordPress-Warwickshire-Meetup/events/268859850/",
     31      "meetup": "WordPress Warwickshire Meetup",
     32      "meetup_url": "https://www.meetup.com/WordPress-Warwickshire-Meetup/",
     33      "date": "2020-03-30 18:00:00",
     34      "end_date": "2020-03-30 19:30:00",
     35      "location": {
     36        "location": "Warwickshire, United Kingdom",
     37        "country": "gb",
     38        "latitude": 52.497497558594,
     39        "longitude": -1.4766750335693
     40      }
     41    },
     42    {
     43      "type": "meetup",
     44      "title": "WordPress Hangout (Online)",
     45      "url": "https://www.meetup.com/WordPress-Montclair-Meetup/events/269614290/",
     46      "meetup": "WordPress Montclair Meetup",
     47      "meetup_url": "https://www.meetup.com/WordPress-Montclair-Meetup/",
     48      "date": "2020-03-30 19:00:00",
     49      "end_date": "2020-03-30 21:00:00",
     50      "location": {
     51        "location": "online",
     52        "country": "FI",
     53        "latitude": 40.810001373291,
     54        "longitude": -74.220001220703
     55      }
     56    },
     57...
     58}}}
    459
    560This should be restricted to returning all events in that country-location, rather than next-event-worldwide.