Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone & Coordinates with Nationality Makes No Sense #119

Open
modelmat opened this issue Nov 20, 2018 · 2 comments
Open

Timezone & Coordinates with Nationality Makes No Sense #119

modelmat opened this issue Nov 20, 2018 · 2 comments

Comments

@modelmat
Copy link

As seen here https://randomuser.me/api/?format=pretty&nat=au&inc=location, both the coordinates and the time zone fields often fall way outside the areas in which the address falls, for example:

{
  "results": [
    {
      "location": {
        "street": "4690 washington ave",
        "city": "bowral",
        "state": "western australia",
        "postcode": 3058,
        "coordinates": {
          "latitude": "-36.5799",
          "longitude": "89.7345"
        },
        "timezone": {
          "offset": "+5:00",
          "description": "Ekaterinburg, Islamabad, Karachi, Tashkent"
        }
      }
    }
  ],
}

Makes no sense as the timezones in Australia do not fall here, and the coordinates are in the middle of the ocean! (https://www.latlong.net/c/?lat=-39&long=89).

Please fix this.

@bbezanson
Copy link

bbezanson commented Jan 22, 2020

Makes no sense as the timezones in Australia do not fall here, and the coordinates are in the middle of the ocean! (https://www.latlong.net/c/?lat=-39&long=89).

Please fix this.

I agree.

I noticed this right away. Both should match the address -- I bet there are public APIs to get the timezone for an address or lat/long and get lat/long from an address as well.

@JackStratford
Copy link

Latitude and Longitude don't match the country and city as well as timezone i random so in the end you get data from 3 different locations.

location:
city: "Spijk gem Lingewaal"
coordinates: {latitude: '38.3252', longitude: '111.4167'} <>
country: "Netherlands"
postcode: 88471
state: "Overijssel"
street: {number: 8978, name: 'Dannenberg'}
timezone: {offset: '+11:00', description: 'Magadan, Solomon Islands, New Caledonia'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants