Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also want to wrap latitude?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe. I'm trying to work out whether bad things happen at the poles or not.
So models.py#76 is going to go crazy (starts to become a problem when
lat ~= 90- 1e-5
, I reckon, since then dlng is going to be approaching 180 degrees).However, this may not be an issue since the longitude circle is so small at the pole that the longitude value doesn’t really… matter (at
90 - 1e-5
, on the order of tens of metres radius (am I right?)).If we are going to handle latitudes at the poles we need to special case lat=90 and avoid dividing by zero on that line; then we need to have some logic to handle flipping the longitude by 180 degrees when it goes over a pole an odd number of times.
This will be quite a few more lines in solver.py, but hopefully since it will only run rarely the cost to our loop is just evaluating one
if
statement?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooooor we could not support going directly over the pole?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could disregard that for now and deal with it later. A separate issue, perhaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good plan.