Routing
Calculate optimal driving, walking, and cycling routes.
GET Copy
https://maps-api.planplus.rs/services/route?lid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&coordinates=20.480082,44.813506;20.466899,44.794057&alternatives=3&steps=false&profile=car&overview=simplified
JSON Copy
{ "waypoints": [ { "location": [ 20.4799, 44.813303 ], "name": "Ljubomira Stojanovića" }, { "location": [ 20.467166, 44.794112 ], "name": "Nebojšina" } ], "routes": [ { "distance": 3538.8, "duration": 333.1, "weight": 235.7, "weight_name": "routability", "geometry": { "type": "LineString", "coordinates": [ [ 20.4799, 44.813303 ], [ 20.480442, 44.81314 ], [ 20.480025, 44.812323 ], [ 20.480442, 44.812006 ], [ 20.477841, 44.810559 ], [ 20.474128, 44.809074 ], [ 20.465929, 44.802608 ], [ 20.466299, 44.802007 ], [ 20.465255, 44.796397 ], [ 20.465349, 44.795221 ], [ 20.467078, 44.791705 ], [ 20.469208, 44.791404 ], [ 20.468763, 44.792483 ], [ 20.467166, 44.794112 ] ] }, "legs": [ { "distance": 3538.8, "duration": 333.1, "weight": 235.7, "summary": "", "steps": [] } ] }, { "distance": 3425, "duration": 330.7, "weight": 265.7, "weight_name": "routability", "geometry": { "type": "LineString", "coordinates": [ [ 20.4799, 44.813303 ], [ 20.482794, 44.812628 ], [ 20.485524, 44.810186 ], [ 20.477224, 44.804927 ], [ 20.475029, 44.805705 ], [ 20.469788, 44.80096 ], [ 20.469133, 44.800771 ], [ 20.469903, 44.799336 ], [ 20.469305, 44.799205 ], [ 20.470104, 44.7981 ], [ 20.46928, 44.796339 ], [ 20.469446, 44.794409 ], [ 20.4692, 44.793773 ], [ 20.467166, 44.794112 ] ] }, "legs": [ { "distance": 3425, "duration": 330.7, "weight": 265.7, "summary": "", "steps": [] } ] } ], "code": "Ok" }