I am developing a web application where 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 at 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?
Thanks
Sure, if you’re going to display it on a Google Map in the end. Google has a set of Maps related web services, one of which is the distance matrix, that can be called from the server.