The Geoloqi service was acquired by Esri in 2012, and was shut down in 2015.
Please visit developers.arcgis.com for information on Esri services that replace the Geoloqi API.
Contents |
https://api.geoloqi.com/1/layer/create
Create a new layer for the current user.
POST
layer
{ "name":"MapAttack", "latitude":45.5246, "longitude":-122.6843, "radius":500 }
If the layer was created successfully, you will get the layer ID in the response and a "200 OK" response code.
HTTP/1.1 200 OK {"layer_id":"C8f233"}
Layers must be named uniquely per user. If a layer already exists with the name provided, you will get a "409 Conflict" response code, but the response body will be identical to a successful request. Additionally, there will be a "Location" header with the URI of the existing layer.
HTTP/1.1 409 Conflict Location: http://api.geoloqi.com/1/layer/info/C8f233 {"layer_id":"C8f233"}
If there was an error, you will get a different response code such as "400 Bad Request" and the JSON returned will contain a descriptive error message. See Error Codes for more information.
{ "error": "invalid_input", "error_description": "Input data must be an array of data points" }
The Geoloqi service was acquired by Esri in 2012, and was shut down in 2015.
Please visit developers.arcgis.com for information on Esri services that replace the Geoloqi API.