<div dir="ltr"><div><div><div><div><div>hi Laura,<br></div>Can you show me an Example who use <span style="font-size:10pt;font-family:"Courier New";color:rgb(0,0,192)">lastInstruction</span><span style="font-size:10pt;font-family:"Courier New";color:black">.getTurnDescription(</span><span style="font-size:10pt;font-family:"Courier New";color:rgb(0,0,192)">esTR</span><span style="font-size:10pt;font-family:"Courier New";color:black">);?<br></span></div><span style="font-size:10pt;font-family:"Courier New";color:black">because I don't find how make the constructor Instruction (in Instruction.java)<br></span></div><span style="font-size:10pt;font-family:"Courier New";color:black">i.e what is lastInstruction ; is it Instruction.java class?<br></span></div><span style="font-size:10pt;font-family:"Courier New";color:black">Please, thank you<br></span></div><span style="font-size:10pt;font-family:"Courier New";color:black">Fred<br></span><div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-20 14:39 GMT+02:00 Fred Laurent <span dir="ltr"><<a href="mailto:fredlaurent31@gmail.com" target="_blank">fredlaurent31@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Ok , Thank you .. I try this<br></div>Fred<br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2015-05-20 14:13 GMT+02:00 Lau <span dir="ltr"><<a href="mailto:laura.barroso@hab.desoft.cu" target="_blank">laura.barroso@hab.desoft.cu</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Fred, Why don’t you try to get the description from the instruction itself???? Ex:<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black;background:silver">TranslationMap</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><span style="font-size:10.0pt;font-family:"Courier New";color:#0000c0">trMap</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> = </span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7f0055">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> TranslationMap().doImport();</span><span style="font-size:10.0pt;font-family:"Courier New""><u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">Locale l = </span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7f0055">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> Locale(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2a00ff">"es"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black;background:silver">Translation </span><span style="font-size:10.0pt;font-family:"Courier New";color:#0000c0;background:yellow">esTR</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> = </span><span style="font-size:10.0pt;font-family:"Courier New";color:#0000c0">trMap</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">.getWithFallBack(l);</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#0000c0">lastInstruction</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">.getTurnDescription(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#0000c0">esTR</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"" lang="ES">De:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"" lang="ES"> Fred Laurent [mailto:<a href="mailto:fredlaurent31@gmail.com" target="_blank">fredlaurent31@gmail.com</a>] <br><b>Enviado el:</b> Wednesday, May 20, 2015 3:51 AM<br><b>Para:</b> GraphHopper Java routing engine<br><b>Asunto:</b> [GraphHopper] [Graphhopper]Instructions<u></u><u></u></span></p><div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hello,<br>I use the last version of graphHopper from Git and In my app <br>I try to show the Instruction (Like Road Book) and my code is :<br><br>.......<br> GHResponse resp = hopper.route(req);<br><br> InstructionList il = resp.getInstructions();<br> TranslationMap SINGLETON = new TranslationMap().doImport();<br> Translation trad = SINGLETON.getWithFallBack(Locale.US);<br> And if i try this :<br> List<String> iList = il.createDescription(trad); I have an error because in the class instructionList.java i don't have the function " List<String> createDescription(Locale locale) " ... <br>Please,How make?<br> I follow <a href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/routing.md" target="_blank">https://github.com/graphhopper/graphhopper/blob/master/docs/core/routing.md</a> and <a href="http://grepcode.com/file/repo1.maven.org/maven2/com.graphhopper/graphhopper/0.1/com/graphhopper/util/InstructionList.java/#InstructionList.createDescription%28java.util.Locale%29" target="_blank">http://grepcode.com/file/repo1.maven.org/maven2/com.graphhopper/graphhopper/0.1/com/graphhopper/util/InstructionList.java/#InstructionList.createDescription%28java.util.Locale%29</a><br>thank you <u></u><u></u></p></div></div></div></div></div><br></div></div>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>