Directions From Lat/Lon

2 posts / 0 new
Last post
sayzawn
Directions From Lat/Lon

How do I get directions from latitude and longitude? I've entered the coordinates in various ways but nothing seems to work:

L.mapquest.directions().route({
start: { lat: '40.7128', lng: '-74.0059'},
end: { street: 'One Liberty Plaza', city: 'New York', state: 'NY', postalCode: '10006'}
});


L.mapquest.directions().route({
start: [40.7128, -74.0059],
end: [30.2672, -97.7431]
});


Thomas.Horacek
Directions with Lat,Lng
Two ways Advanced Location Object: https://developer.mapquest.com/documentation/common/forming-locations/ L.mapquest.directions().route({ start: { latLng: { lat: '40.7128', lng: '-74.0059' }}, end: { street: 'One Liberty Plaza', city: 'New York', state: 'NY', postalCode: '10006'} }); or String: L.mapquest.directions().route({ start: '40.7128,-74.0059', end: { street: 'One Liberty Plaza', city: 'New York', state: 'NY', postalCode: '10006'} });