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

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -