[GraphHopper] Snap to road
Bruno Carle
brunocarle at yahoo.com
Tue Apr 1 11:47:13 UTC 2014
Hi Daniels,
I dont know about the google map tiles but for the snapping you can try this:
GraphHopper graphHopper=new GraphHopper().setInMemory(true)
.setGraphHopperLocation("/tmp/ghLoc")
.setOSMFile(osmFile)
.disableCHShortcuts();
graphHopper.importOrLoad();
QueryResult queryResult=graphHopper.getLocationIndex().
findClosest(50.09624070971814,14.438213109970093,
new DefaultEdgeFilter(graphHopper.getEncodingManager().getSingle()));
System.err.println(queryResult.getSnappedPoint());
Regards
Bruno
________________________________
From: Daniels Pitkevics <daniels.pitkevics at gmail.com>
To: graphhopper at openstreetmap.org
Sent: Monday, March 31, 2014 3:48 PM
Subject: [GraphHopper] Snap to road
Greetings!
I am trying to build a new navigation android app and for now I have been stopped at the point where current GPS coordinate needs to be snapped to the road because of lack of GPS accuracy. Is it possible to do with GraphHopper? If yes, then could You please share some links, classes, methods where I could search for?
Also, is it possible to use GraphHopper routing with Google Maps representation and tile loader?
Thank You in advance.
--
Ar cieņu,
Daniels Pitkevičs
_______________________________________________
GraphHopper mailing list
GraphHopper at openstreetmap.org
https://lists.openstreetmap.org/listinfo/graphhopper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140401/9d284a88/attachment.html>
More information about the GraphHopper
mailing list