<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 85.05pt 70.85pt 85.05pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>lastInstrucion is just a variable...<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>you have all the instrucions, correct?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>GHResponse resp = hopper.route(req);<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>InstructionList il = resp.getInstructions();<o:p></o:p></span></p><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.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></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:fredlaurent31@gmail.com] <br><b>Enviado el:</b> Wednesday, May 20, 2015 8:29 AM<br><b>Para:</b> GraphHopper Java routing engine<br><b>Asunto:</b> Re: [GraphHopper] [Graphhopper]Instructions<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><div><div><div><p class=MsoNormal>hi Laura,<o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></p></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Please, thank you</span><o:p></o:p></p></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Fred</span><o:p></o:p></p><div><div><div><div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></div></div><div><p class=MsoNormal><o:p> </o:p></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>>:<o:p></o:p></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<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Fred<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></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>>:<o:p></o:p></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 style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span lang=ES style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>De:</span></b><span lang=ES 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 3:51 AM<br><b>Para:</b> GraphHopper Java routing engine<br><b>Asunto:</b> [GraphHopper] [Graphhopper]Instructions</span><o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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               <o:p></o:p></p></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></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><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>