这是indexloc提供的服务,不要输入任何密码
Skip to content

Zip Code and Longitude need to be swapped #1

@MattA9K

Description

@MattA9K

from freegeoip import get_geodata

get_geodata("192.21.11.1")
{'status': False, 'countryname': 'CA', 'zipcode': '37.4419', 'countrycode': 'United States', 'regioncode': 'California', 'latitude': '-102.1430', 'ip': 'US', 'city': '', 'longitude': '807', 'regionname': 'Palo Alto'}

As seen above in a python shell this is what happens, I changed the 'latitude' value for my privacy, but as we can see the ZIPCODE and LONGITUDE displayed above are in the wrong places. It should be: 'zipcode':807 'longitude':37.4419

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions