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

marcosi66 at virgilio.it marcosi66 at virgilio.it
Tue Feb 25 13:24:16 UTC 2014


The first code you have wrote I have already do it but nothing change.... I change  var lang = "en_US" in var lang="it" too...


The second code "InstructionList wayList = p.calcInstructions();

      wayList.createDescription(trMap.getWithFallBack(Locale.ITALIAN)));"

Where I can found it or where I have to write this code? in wich js/java or something else?






----Messaggio originale----

Da: peathal at yahoo.de

Data: 25-feb-2014 12.46

A: <graphhopper at openstreetmap.org>

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




  
  
    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/d55d4da9/attachment.html>


More information about the GraphHopper mailing list