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/trigger/create
Create a new geotrigger associated with a place or all places on a layer. The geotrigger can be either a callback URL or can send a message via SMS to the user.
POST
triggers
It is possible to automatically create places when creating triggers. This helps when importing large datasets, since you don't need to make sequential requests to place/create and then trigger/create, you can do it in one API call.
You can create a place either by specifying a latitude, longitude and radius, or by using the built-in geocoder to create a place given an address.
curl -H "Content-Type: application/json" \ -H "Authorization: OAuth APPLICATION_ACCESS_TOKEN" \ -d '{"type": "message", "text": "Welcome to Powells Books", "latitude": 45.523334, "longitude": -122.681612, "radius": 300}' \ https://api.geoloqi.com/1/trigger/create
{ "trigger_id": "2CRm", "place_id": "24tA", "type": "message", "trigger_on": "enter", "trigger_after": 0, "one_time": 0, "text": "Welcome to Powells Books", "extra": { }, "place": { "place_id": "24tA", "name": "", "latitude": 45.523334, "longitude": -122.681612, "radius": 300, "display_name": "", "time_from": "00:00:00", "time_to": "00:00:00", "active": 1, "extra": { }, "description": "" } }
If the geotrigger was created successfully, you will get the trigger ID which can be used to delete the trigger in the future if you wish.
HTTP/1.1 200 OK {"trigger_id":"HY8_3"}
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.