[GraphHopper] Get Street name and Town name of a GPS point
Peter K
peathal at yahoo.de
Fri Nov 29 09:21:52 UTC 2013
Hi Maxime,
you fetch the nearest edge via
QueryResult res = locationIndex.findClosest(...)
res.getClosestEdge().getName()
see GraphHopper.route
Getting the corresponding town or village is not possible now in
GraphHopper and not easy. We're working on it.
You can use a heuristic via feeding towns and there location+width into
a quadtree (or also using the LocationIndexTree) and fetch the closest
town for every edge. If you have online access this is easy via
Nominatim or other geocoders.
Regards,
Peter.
> Hello,
>
> I want to know if it's possible to get the name of the street
> corresponding to a GPS point and if it's also possible to get the
> corresponding Town of the street.
>
> If it's not possible, can you just indicate me a good way to implement
> this?
>
> Anyway for the moment Graphhopper 0.2 works fine on Android, no bug
> for me.
>
> Thank you.
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
More information about the GraphHopper
mailing list