[GraphHopper] instruction too early
Laura Barroso
laura at entumovil.cu
Fri Feb 13 18:50:51 UTC 2015
Hello everyone:
I notices that graphhopper is giving me the instructions too early and
sometimes it wont even give me anything, I think I read about an issue
pointing that but now is close...
I override MyLocationOverlay class, and this is my code:
@Override
public void onLocationChanged(Location location) {
super.onLocationChanged(location);
if (lastLocation == null || location != lastLocation) {
lastLocation = location;
if (il != null) {
Instruction instruction = il.find(location.getLatitude(),
location.getLongitude(), 2);
if (instruction != null && instruction != lastInstruction) {
lastInstruction = instruction;
String text = lastInstruction.getTurnDescription(esTR);
Toast.makeText(context, text, Toast.LENGTH_LONG).show();
if (tts != null) {
tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
}
}
}
}
}
Note that it suppose to give me the instruction with at list 2 meters of
distance, last time I check it gave me the instruction with at list 5
meters of distance in the first edge...the next turn wont dispatch
anything at all...what could be happening?
My start point now is branch "issue 314" since I haven't being able to
download the complete repository(problems with my connection). any help
will be appreciated.
More information about the GraphHopper
mailing list