Select to view content in your preferred language

What parameter do I need in the routing service to update the heading of the unit-device? How can I adjust the course of the direction I'm moving?

1685
9
05-26-2022 03:04 PM
MARCORIVERA50501
Emerging Contributor

Hello to everyone,

I have an application under development that implements re-routing with Arcgis Runtime 100.11.2.0

This is the scenario: I am going to attend an event or incident

The app traces the correct route for me, I'm heading in the wrong direction from where I'm supposed to be going along,  the event is south of me and I'm driving north away from the event.
I ignore the proposed route twice to see the re-routing behavior

MARCORIVERA50501_1-1653602314062.png

 

I know I need to go back that route correct, but the app plotting me a route going in the opposite direction which makes me instantly ‘off route’.

MARCORIVERA50501_2-1653602382761.png

 

MARCORIVERA50501_3-1653602531375.png

What parameter do I need in the routing service to update the heading of the unit-device?

How can I adjust the course of the direction I'm moving?

 

Thanks.

0 Kudos
9 Replies
PreetiMaske
Esri Regular Contributor

Hi 

I am assuming you must have looked at this sample already. Are you saying when you are re-routed the heading on the map continues to be in wrong direction?

--Preeti

0 Kudos
MARCORIVERA50501
Emerging Contributor

Hi Preeti

Thank you for your answer. I have reviewed the ESRI documentation that you recommend

The problem is that re-routing plotting me a route going in the opposite direction.
I would expect the traced route to go forward and indicate the driving maneuvers I must do to take the new route correctly.

 

0 Kudos
dotMorten_esri
Esri Notable Contributor

Are you saying you'd expect the calculated route to continue in the direction you're already headed, and take you to a place where you can perform a U-turn, and then turn you around to go in the right direction?

0 Kudos
MARCORIVERA50501
Emerging Contributor

Hi Morten,  thanks for answering me

Right, that's what I need the app to do 

0 Kudos
MARCORIVERA50501
Emerging Contributor

Hi Morten

Do you have any idea that you can help me, can you please consult with Rex Hansen and Nicholas?, Thanks

0 Kudos
hayer
by
Emerging Contributor

DirectionsStyle set to "Navigation"?
Check the value of "DirectionsSupport" and "SupportsRerouting"?

0 Kudos
MARCORIVERA50501
Emerging Contributor

Hi Hayer,

We have already changed the parameter to this value that you suggest
DirectionsStyle = "Navigation"

MARCORIVERA50501_0-1654111484243.png

Where or how can I set this other "DirectionsSupport" property?

Thanks

0 Kudos
FrankK
by
Occasional Contributor

A few questions ...

Are you using a mobile map package or are you using a service?

How are you doing the testing described above ... is that a simulation of GPS points and if so where are they coming from?

0 Kudos
MARCORIVERA50501
Emerging Contributor

Frank,

We are using a map as a service

and we obtain the GPS points directly from the device (Mobile) in the field and it is parameterized to update every second

0 Kudos