Jump to content

Recommended Posts

Guest S̶ ̶p̶ ̶a̶ ̶r̶ ̶k̶ ̶i̶ ̶e̶

You can get an API for a live map if you contact Krashnz, then you would also have to contact HumaneWolf, Krashnz, J-M and Kat_pw if you are going to have a high rate of updates (which is normal for a map that runs in real time)

API documentation (very important to read for a topic like this): https://stats.truckersmp.com/api

I don't believe there will be any simple solution publicly available, and you may have to find someone to create such a website.

If you want to get started, you may find https://forum.scssoft.com/viewtopic.php?t=186779 (an updated version by a separate user is at the bottom of the page on https://forum.scssoft.com/viewtopic.php?f=41&t=186779&start=50) useful to you.

Share this post


Link to post
Share on other sites

Hello there,

 

Because this is a development related topic I am going to move this topic to the Developer Portal. ETS2 Discussions is a section for casual non-development related questions. 

 

Thank you for your understanding.

 

Regards,

Positivetrucking168

Community Moderator on the Forums

 

//Moved to Developer Portal

Share this post


Link to post
Share on other sites

No, there is no copy/paste code to embed the map on your website. It's not impossible to do so, but I would not recommend it as the result can easily end up badly.

 

The other option is the map api, but that would require you to make your own map, as the api only contains the player data.

  • Like 1

Share this post


Link to post
Share on other sites
On 9/9/2018 at 8:08 AM, HumaneWolf said:

The other option is the map api, but that would require you to make your own map, as the api only contains the player data.

 

Does the API also contains the exact position? 

Share this post


Link to post
Share on other sites
On 11/23/2018 at 3:16 PM, Allan [Tango TR Owner] said:

i just rather use vtlog as it has a live map on there aswell make life easier for your self thats a lot of data 

 

Did you know this map is open source now? https://github.com/edoaxyz/vtlog-map
Or use the modified version of it build by Trucky App https://web.truckyapp.com/map/ (This one is TMP data based) 

 

Share this post


Link to post
Share on other sites
Guest Tim_

 

I only know the ETS2 map, but if it can be made on the website, I can not answer you.

Share this post


Link to post
Share on other sites

Hello!

I have created my own map (https://ice-logistics-vtc.cf/map/). What you can do is get the VTLog map which runs in HTML and JavaScript so PHP isn't required for that part. However, if your wanting to use the map for VTC driver's. Then make the tracker send a POST to a MySQL database every 5 seconds with the location numbers. 

Then use PHP to output the MySQL table in a json format of which then the map can read. However, when the player isn't online, the dots will still show unless you do make it so it doesn't output the row that the offline player is in.

Its really confusing when reading it but I hope you understand.

Many Thanks
- Rhys

Share this post


Link to post
Share on other sites

×
×
  • Create New...