javascript - Google map api get direction API instead of returning route , it returns nearby place like bus stop etc -
we need track user's path. using google's map api --> input parameters start location & end location route . http://maps.google.com/maps/api/js?sensor=false
but in document of google api https://developers.google.com/maps/documentation/javascript/directions#directionsresults
as in document ---"end_location contains latlng of destination of leg. because directionsservice calculates directions between locations using nearest transportation option (usually road) @ start , end points, end_location may different provided destination of leg if, example, road not near destination."
in api instead of returning route , returns nearby place bus stop etc.
Comments
Post a Comment