<div dir="ltr"><div><div><div>Hi Laura,<br></div>You speak about this? :<br> <a href="https://www.mail-archive.com/graphhopper@openstreetmap.org/msg00441.html">https://www.mail-archive.com/graphhopper@openstreetmap.org/msg00441.html</a> <br></div>regards<br></div>thank you <br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-20 15:45 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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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">lastInstrucion is just a variable...<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">you have all the instrucions, correct?<u></u><u></u></span></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">GHResponse resp = hopper.route(req);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">InstructionList il = resp.getInstructions();<u></u><u></u></span></p></span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">lastInstruction is one of those Instructions….in your case you wanna to make a turn by turn instruction, so I suggest that you inherit the MyLocationOverlay class and make a start point on the onLocationChange method in order to select which instruction is the appropriate…there was a discussion a few months back on this list talking about this same issue, and there’s code too, I suggest you look into it.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers.<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"">De:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Fred Laurent [mailto:<a href="mailto:fredlaurent31@gmail.com" target="_blank">fredlaurent31@gmail.com</a>] <br><b>Enviado el:</b> Wednesday, May 20, 2015 8:29 AM<span class=""><br><b>Para:</b> GraphHopper Java routing engine<br></span><b>Asunto:</b> Re: [GraphHopper] [Graphhopper]Instructions<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><div><div><div><p class="MsoNormal">hi Laura,<u></u><u></u></p></div><p class="MsoNormal">Can you show me an Example who use <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><u></u><u></u></p></div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">because I don't find how make the constructor Instruction (in Instruction.java)</span><u></u><u></u></p></div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">i.e what is lastInstruction ; is it Instruction.java class?</span><u></u><u></u></p></div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">Please, thank you</span><u></u><u></u></p></div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">Fred</span><u></u><u></u></p><div><div><div><div><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">2015-05-20 14:39 GMT+02:00 Fred Laurent <<a href="mailto:fredlaurent31@gmail.com" target="_blank">fredlaurent31@gmail.com</a>>:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal">Ok , Thank you .. I try this<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">Fred<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p><div><div><div><p class="MsoNormal">2015-05-20 14:13 GMT+02:00 Lau <<a href="mailto:laura.barroso@hab.desoft.cu" target="_blank">laura.barroso@hab.desoft.cu</a>>:<u></u><u></u></p></div></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><div><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:</span><u></u><u></u></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><u></u><u></u></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><u></u><u></u></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><u></u><u></u></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><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></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</span><u></u><u></u></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><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">_______________________________________________<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><u></u><u></u></p></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">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>