Snap a coordinate to the nearest road
POST/api/v1/nearest
Snap a coordinate to the nearest road
Query Parameters
Snap a coordinate to the nearest road
curl https://plaza.fyi/api/v1/nearest \
-X POST \
-H "Authorization: Bearer $PLAZA_API_KEY"{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"distance_m": 12.4,
"edge_id": 0,
"edge_length_m": 0,
"highway": "highway",
"osm_way_id": 0,
"surface": "surface"
},
"type": "Feature"
}Returns Examples
{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"distance_m": 12.4,
"edge_id": 0,
"edge_length_m": 0,
"highway": "highway",
"osm_way_id": 0,
"surface": "surface"
},
"type": "Feature"
}