[GraphHopper] R: Re: change language info and instruction

Peter K peathal at yahoo.de
Tue Feb 25 11:46:01 UTC 2014


You need to specify locale=it in the URL (but normally it'll pick the
settings from the browser)
or if you use the API just do:
InstructionList wayList = p.calcInstructions();
wayList.createDescription(trMap.getWithFallBack(Locale.ITALIAN)));

Peter.

> Sorry, I didn't explain well, the thing that you have write I have
> already did it, The thing I want is that when I start graphhopper by
> shell and calculate route the instruction,that I want to see, will be
> in Italian not in English... how can I do it?
>
>
>     ----Messaggio originale----
>     Da: peathal at yahoo.de
>     Data: 25-feb-2014 12.18
>     A: "GraphHopper Java routing engine"<graphhopper at openstreetmap.org>
>     Ogg: Re: [GraphHopper] change language info and instruction
>
>     You'll need to add "it" to TranslationMap.LOCALES - see e.g. this
>     pull requests for the necessary changes:
>     https://github.com/graphhopper/graphhopper/pull/153
>
>     Feel free to create also a pull request to integrate Italian into
>     GraphHopper :)
>
>     Regards,
>     Peter.
>
>
>>     Hello, I want to change the language info and the instruction in
>>     my graphhopper project in Italian language, I have already create
>>     a it.txt and I tried to use it but It doesn't work, what I have
>>     to do? I see that there are other file txt with other language so
>>     I think this is possible to change...
>

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


More information about the GraphHopper mailing list