Create a Saved Location
Create a new Saved Location to begin seeing insights.
Enter your PredictHQ API key. The Bearer prefix is added automatically.
When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating
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.
Name of the Saved Location.
E.g. My Location
My LocationDescription of the location.
A list of labels to help you categorize your locations. You can use these labels to search upon.
E.g.
{
"labels": ["label1", "label2"]
}
testYou 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.
Location created successfully
Validation Error
Examples
Create Using Point and Radius
Create Using Place ID
OpenAPI Spec
The OpenAPI spec for Saved Locations API can be found here.
Guides
Below are some guides relevant to this API:
Last updated
Was this helpful?