Get_Near

Description

Gets information from near Points of interest.

URL

/VERSION/pois/get_near.FORMAT

Available Format

KML,JSON

HTTP Method

GET

Accepted Version

1

Require

Authorization.

Headers

Parameters

  • access_token: (Required) access_token to user resources.
  • lat: (Required) latitude search center point.
  • lng: (Required) length search center point.
  • radius: (Required) search radius in meters.
  • categories: (Optional) IDs of categories filter, the POI obtained belong to all specified, separated by commas.

Example

https://api.topoos.com/1/pois/get_near.json?access_token=62f5280d-c954-4ee7-a0a8-68ff9c2810d8&lat=40.953107&lng=-4.123233&radius=10&categories=21

Reply

JSON example reply

[{
    "id": 6542,
    "name": "Recoletas Antiguo",
    "description": "Monasterio",
    "latitude": 40.953108,
    "longitude": -4.123233,
    "elevation": 0,
    "accuracy": 0,
    "vaccuracy": 0,
    "registertime": "2012-12-04T15:08:14.567+00:00",
    "categories": [{
        "Id": 21,
        "Description": "carreras",
        "is_system_category": false
    }],
    "address": "Paseo Del Obispo 18,40001 Segovia",
    "cross_street": "Paseo Del Obispo 18",
    "city": "Segovia",
    "country": null,
    "postal_code": null,
    "phone": null,
    "twitter": "#RecAntiguo",
    "last_update": "2012-12-04T15:08:14.567+00:00",
    "warnings": {
        "closed": 0,
        "duplicated": 0,
        "wrong_indicator": 0,
        "wrong_info": 0
    }
}, {
    "id": 6544,
    "name": "Recoletas",
    "description": "Monasterio",
    "latitude": 40.953107,
    "longitude": -4.123233,
    "elevation": 0,
    "accuracy": 0,
    "vaccuracy": 0,
    "registertime": "2012-12-04T15:14:08.430+00:00",
    "categories": [{
        "Id": 21,
        "Description": "carreras",
        "is_system_category": false
    }],
    "address": "Paseo Del Obispo 18,40001 Segovia",
    "cross_street": "Paseo Del Obispo 18",
    "city": "Segovia",
    "country": null,
    "postal_code": null,
    "phone": null,
    "twitter": "#Recoletas",
    "last_update": "2012-12-04T15:14:08.430+00:00",
    "warnings": {
        "closed": 0,
        "duplicated": 0,
        "wrong_indicator": 0,
        "wrong_info": 0
    }
}]