Contents |
URL
https://api.geoloqi.com/1/layer/info/:id
Description
Return information about the layer specified by "id".
Supported Formats
JSON
Supported Request Methods
GET
Parameters
- count_valid_places OptionalIf included and set to "1", you will get a count of the number of valid (non-expired) places in this layer.
- count_places OptionalIf included and set to "1", you will get a count of the number of all places in this layer.
- include_valid_places OptionalIf included and set to "1", you will get an array of the valid (non-expired) places in the layer.
- include_places OptionalIf included and set to "1", you will get an array of all of the places in the layer.
- key OptionalYou can retrieve layer info for a key by specifying a key in the query string parameter and leaving off the ":id" from the URL
Example Request
https://api.geoloqi.com/1/layer/info/MMM
https://api.geoloqi.com/1/layer/info?key=my_layer
Response
{ "layer_id":"Ct9eE30", "type":"normal", "name":"Cities", "num_places":20, "places":[ { "place_id":"1rThjH4", "name":"Beaverton", "latitude":45.487455771013735, "longitude":-122.80946731567383, "radius":2.25375 }, { "place_id":"1rThjH3", "name":"Portland", "latitude":45.52895978871845, "longitude":-122.65342712402344, "radius":4.07893 } ] }