i wanna add a label showing my direction from the navigation directions so when my location label text exists inside the directions label, the app should notify
the directions text is showing like that!
i wanna add a label showing my direction from the navigation directions so when my location label text exists inside the directions label, the app should notify
the directions text is showing like that!
What displays depends on where the directions were encoded
For instance, these directions were encoded in the USA
show east and other directions SOMETIMES. The directions won't display unless the ORS information was encoded to have the directions I believe. If the directions string does not have the points of the compass you will not get them I don/t believe the directions will be on ever set of directions. so you can't depend upon the occurrence of compass points as a direction indicator.
Another way might be to to determine compass direction would be to look at the directions track as it is platted Note the points where it shows a change in direction and you might be able to to see which way the 'turn' information plots the LineString (east, west, nw , sw etc ) . You may be able to follow the track. To plot this would require you to examine the actual track. It would be tedious and probably totally impractical.
What you can do is use the LocationSensor to plot your actual location while plotting the route using Navigation. That shoud shhow where you are locateded currently on the route.
Would that require a third marker to plot where one actually is on a journey?
If you use a design time Marker for the ORS Start location and another for the End, yes certainly you will need a third. I think you might be able to simply check ShowUser on the Map Designer Properties but I recall I tried that and it might not work with ORS on some Androids.
Set the color of the pin you use for current location a different color perhaps and your current location will plot fine .