Jump to content
Sign in to follow this  
[BTL] Elten [GER]

VTL MAP with ets2map tracker

Recommended Posts

@[BTL] Elten [GER] Check out https://github.com/edoaxyz/vtlog-map/blob/master/ets2.html and then line 408. Here it refers to our api. Easiest way to make it work with your own tracker or data set is to duplicate our api scheme. So basicly make an HTTP Json api with the same layout.  You can find our api at https://tracker.vtlog.net

 

@CJMAXiK Its build for VTLOG yes but the open source version can actually be used with any data set. You can see that back at:

https://map.vivatrucks.com/ets2.html

https://web.truckyapp.com/map - last version was fully developed by themselves I believe. 

Share this post


Link to post
Share on other sites

}
                lastreq.open("GET", "http://tracker.ets2map.com/v3/fullmap", true ); // add to the link '&vtc=<your_vtc_id>' for showing only your vtc
                lastreq.send( null );
            }
            function elab(text) {
                try {
                    user = JSON.parse(text).Data;
 

 

Share this post


Link to post
Share on other sites

@[BTL] Elten [GER] i discourage definitely to use the fullmap endpoint for a live map because it's a massive call that should be used for caching data and not to display live data with a 2-3 seconds refresh

 

you should reverse engineer the ets2map code (and the Ajax area calls) to understand how to get markers for specific map bounds, for experience, I could tell you that it's a bit tricky to adapt a leaflet map to the ets2map area API but it's doable.

 

btw, there is the Trucky live map, as suggested from Fabby and Unknown that do already the job.

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...