Google Distance Matrix API - Find distance between a given place and nearest bus stop, restaurant etc -
i need use google distance api find distance between given place , nearest bus stop, atm, police station etc. not being able so. whenever write atm+cityname, gives weird results. destination perceives thousands of kms away origin. think need know format of url achieve goal.
what looking not possible in 1 step, distancematrix-api uses geocoding(which requires addresses or latlng's), looking places.
first run places-nearbysearch , request distancematrix-service based on locations returned nearbysearch
Comments
Post a Comment