Use Amap js to achieve real-time navigation?

is now working on a project that requires the use of Amap. A real-time navigation feature is used in the
project.
I"d like to ask how to display our location in real time after the navigation path appears on the browser side, as we usually use app.

do you want to use event polling to constantly query the location and then draw it, or is there any other good way to do it?
Please provide a train of thought. Thank you

.
Mar.07,2021

first take a look at this Amap's real-time navigation


1. Polling is the easiest. Set a certain period of time to continuously poll for gps location.
2. Instead of polling, the frontend throws it to the backend and pushes it with socket.io. The backend pushes the gps only when the gps changes, and the frontend gets the location.


as far as I know, Amap JS API does not support real-time navigation. You can jump to map APP to achieve navigation.

Navigation document:
https://lbs.amap.com/getting-.

the document also says that the trial platform is IOS and Android, but there is no web.

Menu