My objective here is to identify while the user is asking for directions, if the user has already been in one of the streets (even if not in the exact same coordinates) that were given in the result of the google maps directions search.
It happens like this:
When the user is just browsing the streets, the app, from time to time, asks google where the user is, using the geocode api. And then it registers it (I still need to know which information should I use).
On another time in the future, the user will ask for directions to a specific place he wants to go, the app will ask for alternatives to google maps, then it will decide which path is the one to use having into account if the user will recognize as much as possible as he progresses or the other way around, according to a configuration.
The problem is that I have no clue what to use as the unique identifier for each street.
Note: For now I'm not dividing the big streets into sectors. It should be easier that way. Ofc, if that's easier than considering the whole street, I'll divide the streets into sectors.
I already tested that i cannot use the coordinates of where the user is. In order not to overlap with near streets and to give a good precision, I'm unable to use the coordinates, even if truncated.
I also checked that using the name of the place that the geocode returns does not seem usable when I'm asking for directions. The directions api does not name the streets with the same identifier...
Help please.
Thanks in advance.