v1
latestOpenAPI 3.0.12026-07-2433136135.1 KBTrade Area Reports
Trade Area by Drive Time Report
This service lets you retrieve the trade area polygon calculated for a specified drive time.<br/><br/> 📍 This service supports the <<glossary:Nearby Activity report>>. Once setting a value to the nearbyRadius parameter, the report will be generated based on the nearby activity logic.
post/v1/reports/trade-area/drive-time
Request body
Example request
{
"startDate": "2020-12-01",
"endDate": "2021-05-31",
"apiId": "venue:7d55054520e387813d764b03",
"allocationType": "weightedCentroid",
"filter": {
"audienceType": [
"visitors"
],
"dwellTime": {
"operator": "<",
"value": 150
},
"hoursRange": {
"fromHour": "03:00 am",
"toHour": "11:59 pm"
},
"daysOfWeek": [
6,
7
],
"distance": {
"from": "home",
"values": {
"lt": 250,
"gt": 10
}
}
}
}Response
200 response
Example response
{
"requestId": "cfe57f50-fb64-11eb-8760-acde48001122:cfe56fce-fb64-11eb-8760-acde48001122",
"data": {
"startDate": "2020-12-01",
"endDate": "2021-05-31",
"apiId": "venue:7d55054520e387813d764b03",
"filters": {
"audienceType": [
"visitors"
],
"dwellTime": {
"operator": "<",
"value": 150
},
"hoursRange": {
"fromHour": "03:00 am",
"toHour": "11:59 pm"
},
"daysOfWeek": [
6,
7
],
"distance": {
"from": "home",
"values": {
"lt": 250,
"gt": 10
}
}
},
"visitDurationSegmentation": "10MinOrLonger",
"allocationType": "weightedCentroid",
"type": "MultiPolygon",
"coordinates": [
[
[
-121.98
]
]
]
}
}