Funbit / ets2-telemetry-server

ETS2/ATS Telemetry Web Server + Mobile Dashboard
GNU General Public License v3.0
625 stars 206 forks source link

Route not showing #147

Open NathanFumerola opened 2 years ago

NathanFumerola commented 2 years ago

I have a gps one for this and when taking a job it doesnt show the route in ats

KS-HTK commented 2 years ago

Hey, if you are using mike-koch/ets2-mobile-route-advisor this is not an issue. It is a limitation of the mra(mobile-route-advisor). While the telemetry server gives data about current location and job, it does not supply any information about the route the game tells you to take.

Furthermore the mra only places an arrow and loads the map at that location, it is not capable of drawing a route onto the map. The map is based on tiles (small image files). For more information about raster tiles and vector tiles this article gives a good overview. As I understand maps and mapping, raster data maps do not give information about the route, all tiles are per calculated images and are shown based on a xy location in the raster. To be able to draw the route the map itself would need to be either vector data tiles or a map service. Those could then be used by frameworks like leaflet to display the map an a route.

If you want to take the time to work on this issue, I would suggest starting with a way of getting vector tiles of the game map. dariowouters/ts-map seems to be a software capable of generating raster tile maps of the game by extracting the information out of the game files. Maybe that software could be expanded so it is capable of generating vector tile maps.

TL;DR: This is not a issue of the ets2-telemetry-server and it is not a issue of the moblie-route-advisor, rather it is a limitation of the way the mra is implemented due to not having access to the vector data of the game map.

IgazHarcos commented 1 year ago

It never showed. The necessary data is not in the API to do this.