title: check if a point is on the route in google maps
body: <p>I am able to show the route by taking the name of the place from user in google maps.now i want to check if the point lies on the route between two places that user have entered.i am using google maps javascript api v3 and <code>isLocationOnEdge()</code> is not working and polygon with two points is also not working.</p>