Create a Saved Location
Create a new Saved Location to begin seeing insights.
Request
HTTP Request
Request Headers
Content-Type
application/json
Request Body
name
string
required
Name of the Saved Location.
E.g. My Location
description
string
Description of the location.
location_code
string
An optional identifier for your location. The intention here is to use your own identifier for the location if you have one. E.g., you might have stores/hotels/etc in your system with their own ID - use that ID here to make it easier to lookup the location later.
labels
array
A list of labels to help you categorize your locations. You can use these labels to search upon. E.g.
geojson
object
You can define the geolocation of the Saved Location either by GeoJSON or Place IDs.
When using GeoJSON please note the following:
Currently, we only support
Point
type locations .Remember that GeoJSON coordinates are ordered longitude then latitude.
We require a radius to be defined using a special set of properties on the GeoJSON record. As in the example below, these are
radius
andradius_unit
.The
radius
property must be an integer or a float number up to 2 decimal places.The
radius_unit
property must be one of:m
- meterskm
- kilometersft
- feetmi
- miles
Note: We strongly recommend using our Suggested Radius API to find a suitable radius value for your location and industry.
E.g.
place_ids
array
You can define the geolocation of the Saved Location either by GeoJSON or Place IDs.
The Place IDs option is typically used when the location covers an entire city, county, state or country.
Use our Places API to search for the correct Place ID.
E.g.
Response
Examples
Create Using Point and Radius
Create Using Place ID
Guides
Below are some guides relevant to this API:
Last updated