Skip to content

admin1Code, admin2Code are returned as string instead of object in API response #86

Open
@shivamsaxenadev

Description

@shivamsaxenadev

Hi Thomas,

Thank you for building this extremely useful application! We have been using it in our app for a few months now, and the results have been accurate 99% of the time.

I noticed that in some cases, the admin1Code or admin2Code returns a string instead of an object. Is this expected behaviour? Here are the requests to reproduce the issue:

  • "admin1Code" : "00"

curl --location 'http://SERVER_URL/geocode?latitude=-16.48679&longitude=-151.74102'

  • "admin2Code" : "00"

curl --location 'http://SERVER_URL/geocode?latitude=52.51667&longitude=13.36667'

Please let me know if you need any other information.

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