Parse the DirectionsResult object https://developers.google.com/maps/documentation/javascript/directions to get down to the path array(s). Iterate through that (those) array(s) to see if your certain point is in the array.
You will need to develop logic to decide what is "close enough" to be "on" the route. On Sunday, January 7, 2018 at 3:43:42 PM UTC-8, Onder Arslan wrote: > > I am using google maps js v3 api to create a route using direction > function. After that I want to check if a certain point is on my route or > not. > > Thanks. > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at https://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.