Esri's Geotrigger Service is replacing Geoloqi! Learn More | FAQ

place/nearby

Contents

URL

https://api.geoloqi.com/1/place/nearby

Description

Returns a list of places nearby given various search parameters.

By default, this method will return only places that completely contain the specified point. If you want to search for nearby places that may not actually be inside a place, use the "distance" parameter to specify a distance in meters.

Supported Request Methods

GET

Parameters

  • layer_id Optional
    The id of the layer to retrieve places from. If not specified, the user's default layer is assumed.
  • latitude Optional
    If a latitude and longitude are specified, the given point will be used in the place search. Otherwise, the last known location of the authenticating user is assumed.
  • longitude Optional
    See above
  • geocode Optional
    If the geocode parameter is present, the text provided will be geocoded and that location will be used for the search.
  • distance Optional
    Distance in meters. If specified, only places within the specified distance will be returned. By default, this method returns only places that contain the given point.
  • Paging

Response

{
"places": [
    {
      "place_id":"13renN",
      "name":"Portland",
      "latitude":45.52302670,
      "longitude":-122.6176786,
      "radius":7350,
      "intersection":"",
      "locality":{
        "name":"Portland",
        "id":"E_4g"
      },
      "region":{
        "name":"Oregon",
        "id":"Rnhe9"
      },
      "country":{
        "name":"United States of America",
        "id":"u42"
      },
      "display_name":"Portland, Oregon",
      "extra":{
        "favorite":"1"
      },
      "distance": 362
    },    
    {
      "place_id":"17r8Jk",
      "name":"",
      "latitude":45.4874557,
      "longitude":-122.8094673,
      "radius":2253
      "intersection": "",
      "locality":{
        "name":"Beaverton",
        "id":"Eh4g"
      },
      "region":{
        "name":"Oregon",
        "id":"Rnhe9"
      },
      "country":{
        "name":"United States of America",
        "id":"u42"
      },
      "display_name":"Beaverton, Oregon",
      "distance": 4262
    }
  ]
}