Skip to content

Bug Report #164

Description

@jshng-glasgow

Describe the bug
It seems the code is mixing up latitude and longitude at some point when radius is added as a kwarg. Having -90 < latitude < 90, longitude > 90 and radius > 0 returns an error: ValueError: Latitude <longitude value> is out of range [-90, 90]. It seems like somehwere in the checking the lat/lon values have been swapped?

To Reproduce

>>> mapillary.interface.get_image_close_to(latitude=22.417898, longitude=114.0624077, radius=50)

returns the following error:

ValueError: Latitude 114.0624077 is out of range [-90, 90]

Noting that the latitude was actually set to 22.417898 which is within bounds.

Expected behavior
Not return an error, since both latitude and longitude are within bounds.

Additional context
The bug does not occur if radius is not set.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions