whosonfirst / whosonfirst-www-api

4 stars 2 forks source link

Teach getHierarchiesByLatLon to return standard "get info" blobs #47

Closed thisisaaronland closed 7 years ago

thisisaaronland commented 7 years ago

Add a flag/parameter to getHierarchiesByLatLon and get back something like this :

{
     "PLACETYPE": { STANDARD GET INFO PLACE BLOB PLUS EXTRAS HOOHAH },
     "PLACETYPE": { STANDARD GET INFO PLACE BLOB ... },
     ... and so on ...
}

Where the standard info response looks like:

{
      "wof:id": 85688637,
      "wof:parent_id": "85633793",
      "wof:name": "California",
      "wof:placetype": "region",
      "wof:country": "US",
      "wof:repo": "whosonfirst-data"
}

Under the hood, this is basically just a question of invoking the same code that we're using for getInfoMulti.

simonw commented 7 years ago

Fantastic, this is exactly what we needed! Thanks very much.