whosonfirst / whosonfirst-www-api

4 stars 2 forks source link

placetype=locality filter on getNearby for New York coordinate returns empty list #70

Closed wsusanto-eb closed 7 years ago

wsusanto-eb commented 7 years ago

https://whosonfirst-api.mapzen.com/?api_key=mapzen-XXXXX&method=whosonfirst.places.getNearby&latitude=40.7127837&longitude=-74.0059413&placetype=locality&radius=80467

 {
    "places": [],
    "next_query": null,
    "total": null,
    "page": null,
    "per_page": 100,
    "pages": null,
    "cursor": null,
    "stat": "ok"
}

That's this point here: https://www.google.com/maps/search/40.7127837,-74.0059413 image

thisisaaronland commented 7 years ago

Yeah, I can reproduce this. Investigating...

thisisaaronland commented 7 years ago

This appears to have been an indexing hiccup. Your immediate query results stuff within the immediate vicinity but I will leave this ticket open until the re-indexing is complete. Apologies for the confusion.

curl -X GET 'https://whosonfirst-api.mapzen.com?method=whosonfirst.places.getNearby&api_key=mapzen-xxxxxx&latitude=40.7127837&longitude=-74.0059413&placetype=locality&format=json'

{
  "places": [
    {
      "wof:id": 85977539,
      "wof:parent_id": -4,
      "wof:name": "New York",
      "wof:placetype": "locality",
      "wof:country": "US",
      "wof:repo": "whosonfirst-data"
    }
  ],
  "next_query": null,
  "total": null,
  "page": null,
  "per_page": 100,
  "pages": null,
  "cursor": null,
  "stat": "ok"
}
thisisaaronland commented 7 years ago

Re-indexing is complete and your query returns many localities!