Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Point normalizes latitude bizarrely #243

@cffk

Description

@cffk

Point treats latitude periodically and thus connects the north and south
poles

>>> from geopy import Point
>>> Point(90.1, 10)
Point(-89.9, 10.0, 0.0)

This can't be considered a sensible result. Better would be to change
latitudes outside the range [-90, 90] into nans. Then people who
accidentally switch the order of latitude and longitude will sometimes
get a sharp poke in the eye that they've done something wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions