🌎 Nice nerdy bug spotted by @adamdoleary 

Theprofile travel map wouldn't cross over the international date line

So a flight from Fiji to Samoa (east) which is just 2 hours, would go all the way back (west) across Europe and US

This is due to how longitude wrapping around the international date line is being handled. On a globe or map projection, if you draw a line from a point near 180° longitude to one near -180°, it results in a long arc across the map instead of a short hop

I dumped all my code into ChatGPT along with the bug report to fix it:

"Here is my drawCurves function on Nomad List, it draws trips from place to place with curved lines on a map

The line from Samoa to Fiji is going all the way across the map, as opposed to showing the tiny little hop that it is."

And with a few tries it fixed it by just adding 360 to the latitude if it detected it'd cross the dateline

Now works!