[GraphHopper] display of the direction indicators

Peter K peathal at yahoo.de
Mon Aug 5 12:35:09 UTC 2013


for the GHResponse object it is getInstructions, for the Path object it
is calcInstructions.

If you do not disable instructions for a request it will always call
path.calcInstruction behind the scene. Then they are available via
response.getInstructions

Peter.


> Maybe you mean method getInstructions ?
> GHResponse resp = hopper.route(req);
>  InstructionList il = resp.getInstructions();
>
> Because resp.calcInstructions() is  undefined for the type GHResponse
>
>
> ???????????, 5 ??????? 2013, 14:05 +02:00 ?? Peter K <peathal at yahoo.de>:
>
>     see the methods in InstructionList:
>
>     InstructionList il = path.calcInstructions();
>     il.getDistances();
>     il.createDistances(Locale.GERMANY);
>     ...
>
>     Peter.
>
>
>>     Hello !
>>     Where can I get information to display turns?
>>     For example: after 100 meters turn right.
>>
>>     -- 
>>     Dmitriy Puchkov
>>
>>
>>     _______________________________________________
>>     GraphHopper mailing list
>>     GraphHopper at openstreetmap.org <sentmsg?mailto=mailto%3aGraphHopper at openstreetmap.org>
>>     http://lists.openstreetmap.org/listinfo/graphhopper
>
>     _______________________________________________
>     GraphHopper mailing list
>     GraphHopper at openstreetmap.org
>     <sentmsg?compose&To=GraphHopper at openstreetmap.org>
>     http://lists.openstreetmap.org/listinfo/graphhopper
>
>
>
> -- 
> ??????? ??????
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130805/c14f52d5/attachment.html>


More information about the GraphHopper mailing list