Waypoint cost using GW2 API

Waypoint cost using GW2 API

in API Development

Posted by: Kureman.7219

Kureman.7219

Hi there !

I don’t really know if it’s the good place to ask but here goes :

I’m currently working on a web application which uses a set of waypoints, that I get thanks to the /v2/continents API, to build and trace a route on a map.

I’d like to display the teleport cost between each waypoint, and from that, the total cost of the route.

I looked at the waypoint wiki page, tried to work my way around the given formula but my math results are all approximate, floating point nightmare, values.

So I’d like to know if it is possible to calculate the exact teleport cost, depending on the character level, between two waypoints using the coordinates provided by the API ?

Any hint is very much appreciated

I’ll surely give more details if needed tomorrow, but it’s late out there. G’night and thank you for your time !