Now uses shortest path even if going over the date line.

Hi I'd like to merge new updates from your plugin. Thanks :)