[GraphHopper] Snap to road
Daniels Pitkevics
daniels.pitkevics at gmail.com
Tue Apr 1 13:26:11 UTC 2014
Hi.
Thank You for Your answer. Is it the best way to make my GPS marker to be
set on road using this method? Maybe there are some alternatives on making
navigation with graphhopper?
Also, is it possible to set map center on marker and also tilt map till
particular degrees i choose?
On 1 April 2014 14:47, Bruno Carle <brunocarle at yahoo.com> wrote:
> 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
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
--
*Ar cieņu,*
*Daniels Pitkevičs*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140401/5058d994/attachment.html>
More information about the GraphHopper
mailing list