Closed vinisalazar closed 5 months ago
Hi @vinisalazar ,
Thanks for reporting this issue and suggesting the code. I let the lat
between -90 and 90 deg ( should help users who are confused while setting as lat, lon instead of lon,lat : #23 ), and didn't put any limitation on lon
, as it can be any float number (this can be improved by normalising it between -180 and 180 deg, maybe in a next version).
I just published version v.1.2.3
which improved the way a coordination is validated.
It should be fixed now, let me know if you still face the issue.
Considering as fixed in version >=1.2.3
Feel free to re-open a new issue if the error persists.
Hi,
I'm running searoute
v1.2.2
. One of the coordinate points in my dataset is at the Equator, and has a registered latitude of0.0
. I noticed that thesearoute.searoute
function would return the following Exception when I tried calculating the distance from that point to another:Exception: Origin/Destination must not be empty or None
A toy example can be executed using Null Island:
This check on the
origin
anddestination
variables, although elegant, is flawed. It would be better off if replaced for something else, e.g.:If you are inclined, I would be happy to submit a PR fixing that for your appreciation.
Thank you, Vini