[GraphHopper] Snap to road

Doanh Tran dangdoanh.sp at gmail.com
Wed Apr 2 05:50:31 UTC 2014


Greetings!
I'm very interested in your project (special in routing).
I was compiled it and it's fine. So, I think in this demo, it just work
with a little of places (such us Berlin, Newyork)
I come from Vietnam and I want to make it work routing offline in Vietnam.
So I was followed these step to create vietnam.ghz, but I when I run
'Run.sh' file in graphhopper, it said: 'line 1: mvn: command not found'
And I don't know where is the path that folder vietnam-gh created (if
run.sh is ok).
Can you explain and give me more instructions about how to create *ghz file?
Thank!

Doanh.


2014-04-01 20:26 GMT+07:00 Daniels Pitkevics <daniels.pitkevics at gmail.com>:

> 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*
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>


-- 

Trân trọng,

Tran Dang Doanh
 M: (84) 943438338 E: dangdoanh.sp at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140402/0577265c/attachment.html>


More information about the GraphHopper mailing list