Jump to content
  • 0

关于获取玩家在线状态以及位置(About getting players' online status and location)


(QwQ)

Question

我知道我不应该发在这里 但是我不能发到开发者门户 希望管理员能帮我挪过去:D

I know I shouldn't send it here, but I can't send it to the developer portal. I hope the administrator can move it for me: D

======================================================================================

我最近想在我的VTC的交流群里面做一个机器人,用来查询服务器信息以及我们VTC里面人的在线状态和位置。

例如 我上线的时候 在群里面能发一条:" xxx 上线了,位于法兰克福"

我现在使用的是https://api.truckyapp.com/docs/#api-TruckersMP-GetV2TruckersmpPlayerPlayeridPlayerid

但是因为一些问题 我的网络延时很高 导致查询时间很长 

所以我在想 能不能使用 https://map.truckersmp.com/ 里面的API 

例如 

https://tracker.ets2map.com/v3/playersearch

等等 

但是我并没有在API文档里面见到这个API 所以不知道我们能否使用他.

?

 

以下来自Baidu 翻译:

The following is from Baidu translation:

 

Recently, I want to be a robot in my VTC communication group to query the server information and the online status and location of people in our VTC.

For example, when I go online, I can send a message in the group: "XXX is online, located in Frankfurt"

What I'm using now is https://api.truckyapp.com/docs/#api-TruckersMP-GetV2TruckersmpPlayerPlayeridPlayerid

However, due to some problems, my network delay is very high, resulting in a long query time

So I was wondering if I could use it https://map.truckersmp.com/ API inside

for example

https://tracker.ets2map.com/v3/playersearch

But I didn't see this API in the API document, so I don't know if we can use it

 

?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Hello there @YZT-(QwQ),

 

Thank you for creating a topic on the Forum.

 

Indeed, after I checked your descriptions, I know your problems. And I also notice that there are not API(s) for your requirement in the API Documment.

 

But there is a API about fetching player infomations, I think you can use it. According to my knowledge, you also need to connect it with the member list of your vtc.

 

I am sorry I am not a developer, but I will do my best to help you. You may also need https://map.truckersmp.com/. Moreover, there are some problems of the ProMods Server online map, so you can't check the player details in ProMods and ProMods Arcade. I apologize for it.

 

Kind regards,

@Lucas_xiaoZheng

TruckersMP Support

Link to comment
Share on other sites

  • 0

我是希望在我的程序中使用api来获取玩家位置,以便能在社交平台上实时查询。

但是这个https://tracker.ets2map.com/v3/playersearch api并不能返回我需要的玩家位置 他只能返回一个x 与y 我更希望能返回地点的名称 

 以下来自百度翻译:

The following is from Baidu translation:

I want to use the API in my program to get the player's location, so that I can query in real time on the social platform.

But this https://tracker.ets2map.com/v3/playersearch The API can't return the player location I need. It can only return an X and Y. I prefer to return the name of the location

Link to comment
Share on other sites

  • 0

Hello there!

 

Your topic has been inactive for 3 days since the last reply.

Because of inactivity, I will have to move this topic to Inactive Topics.

 

If you have any further queries, feel free to DM me or another Support Team member and we will open this topic as per your request.

 

Thanks to all participation.

 

Kind regards,

Lucas_xiaoZheng

TruckersMP Support

 

//Locked and moved to Inactive

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.