(QwQ) Posted May 5, 2022 Share Posted May 5, 2022 我知道我不应该发在这里 但是我不能发到开发者门户 希望管理员能帮我挪过去: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 More sharing options...
0 James Posted May 5, 2022 Share Posted May 5, 2022 As you've also translated this to English, I will move this to the English Help section. I hope you can get the response you need! // Moved to Help Link to comment Share on other sites More sharing options...
0 Lucas._ Posted May 7, 2022 Share Posted May 7, 2022 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 More sharing options...
0 (QwQ) Posted May 7, 2022 Author Share Posted May 7, 2022 我是希望在我的程序中使用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 More sharing options...
0 LogRol Posted May 7, 2022 Share Posted May 7, 2022 Hello! I am a developer in my VTC, and I also use that API endpoint provided by TruckersMP. As far as I know, it can only return coordinates instead of city names, so unfortunately this is not possible by the api in itself. Let us know if this helped, Kind Regards, LogRol Link to comment Share on other sites More sharing options...
0 (QwQ) Posted May 8, 2022 Author Share Posted May 8, 2022 那有什么办法可以将坐标转换为城市名称 请问? Is there any way to convert coordinates into city names? Link to comment Share on other sites More sharing options...
0 Lucas._ Posted May 11, 2022 Share Posted May 11, 2022 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 More sharing options...
0 Lucas._ Posted May 18, 2022 Share Posted May 18, 2022 Hello there! Due to this topic not wanting to be opened after 1 week of being Inactive, I will have to move it to Unsolved Topics. If you are still having issues, feel free to contact us here: https://truckersmp.com/support Kind regards, Lucas_xiaoZheng TruckersMP - Support //Moved to unsolved Link to comment Share on other sites More sharing options...
Question
(QwQ)
我知道我不应该发在这里 但是我不能发到开发者门户 希望管理员能帮我挪过去: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