Isochrones
POST
accessibility/isochrones
Returns the isochrone for the specified location, mode of transport and cutoff minutes, e.g. the area that can be reached by car within 15 minutes. Optionally, densities of points of interest can be obtained (see also Points of Interest).
Request#
curl -X POST 'https://api.pricehubble.com/api/v1/accessibility/isochrones' \
-H 'content-type: application/json' \
-H 'Authorization: Bearer 74126eab0a9048d993bda4b1b55ae074' \
-d '{
"coordinates": {
"latitude": 47.36925,
"longitude": 8.531118
},
"mode": "CAR",
"cutoff": 15,
"returnDensities": true,
"dossierId": "3bac39b8-2d84-4ae9-a693-40502071ea5d",
"countryCode": "CH"
}'
Field | Description | Type | Remarks |
---|---|---|---|
coordinates | Location for which information should be retrieved | Coordinates | |
mode | Mode of transport | string | Valid values are WALK , BICYCLE , CAR or PUBLIC_TRANSPORT (PUBLIC_TRANSPORT is currently only supported in AT , BE , CH , DE , FR and UK ) |
cutoff | Cutoff in minutes for which isochrone should be returned | integer | min: 1, max: 60 |
returnDensities | Whether to return densities of points of interest in response | boolean | default: false |
dossierId | ID of the dossier | string | If this field is added to the request, then the location must be the same as the dossier's location (address or coordinates) |
countryCode | ISO country code | string | Valid values are AT , BE , CH , CZ , DE , FR , JP , NL , SK and UK |
Response#
{
"densities": {
"catering": 1770,
"education": 570,
"health": 257,
"leisure": 527,
"shopping": 423
},
"isochrone": {
"geometry": {
"coordinates": [
[
[
[
8.5817244,
47.2587292
],
...
]
]
],
"type": "MultiPolygon"
}
}
}
Field | Description | Type | Remarks |
---|---|---|---|
densities.education | Number of education POIs within the requested isochrone |
integer | |
densities.shopping | Number of shopping POIs within the requested isochrone |
integer | |
densities.catering | Number of catering POIs within the requested isochrone |
integer | |
densities.health | Number of health POIs within the requested isochrone |
integer | |
densities.leisure | Number of leisure POIs within the requested isochrone |
integer | |
isochrone.geometry | Isochrone geometry | GeoJSON MultiPolygon |