Funbit / ets2-telemetry-server

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

Show Near city in API. #114

Closed AdamorfuX closed 6 years ago

AdamorfuX commented 6 years ago

Hi. Is it possible to add a function that shows nearest city in API?

Orokon commented 6 years ago

It is possible. Because the Truck position is given by the api you could get a list of cities and their positions and include a function that calculates the distance by coordinates. What would be a usecase for that?

AdamorfuX commented 6 years ago

That sounds little bit complicated.