I have a google map service with the stores indicated on it. I also have a route service (then you define two addresses or more, and this shows you the path on this map, see google map api directions). Therefore, I am ready to show the nearest stores. Of course, this could be a store located in the next way of my journey, so it should also be on the list.
So far, I just found only an array of steps in the directions object that I get from google api maps. But these steps are predetermined by Google, so they can be too close to each other, and they can also be too far (if part of your route is a highway or there aren’t any special steps on your way, etc.)
So what I want to do. I want to take my own steps on the line that I get from Google’s directions (for example, to complete these steps on my line every 500 mayors, etc.), and then search for about 200 mayors for each store.
Can this be done? I can not find a solution to this idea on the Internet.
source
share