Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am developing a web application wherein i need to find the closest bus-stop from a users location and mark it on a map. I have the list of bus-stops on my server. I am using Google's Distance Matrix service which returns me the distance between my source and multiple bus stops. Then, by comparing the distance i get the nearest bus-stop. But this is all happening on client side. I wanted my server to do the decision.

Is it possible for my server to directly communicate with the Google maps server and get the distance?


share|improve this question

Are you using Google Maps API to display the results (Distance Matrix results need to be displayed on the Google Map).

Though you can call the JSON query from your server: Example:|Seattle&destinations=San+Francisco|Victoria+BC&mode=bicycling&language=fr-FR&sensor=false

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.