I could not think of a Title which exactly describes my problem, but I will try to explain.
I have a bus route as DB table where Lat/Long of each Bus stop is stored.
Now, I get live GPS cordinates and when the bus reaches a particular point, I want to know whether its close to Stop S2 or S3 - The key is that least distance should be measured along the bus route , not the shortest linear distance ignoring say a curve.
I am using Google maps API. Kindly suggest which path to take.Please note that its not a nearest place from current location using google places API.
