Wrong longitude or latitude

  • 1
  • Problem
  • Updated 3 years ago

I just recognized a strange behaviour of the json url:

If the url has the correct longitude and latitude values ( http://api.wunderground.com/api/95138b042f24a3d0/geolookup/q/47.312088,9.635824.json1), it returns 47.31 as latitude and 9,63 as longitude. So it cuts down the values to 2 decimals.

Now I can either have a correct latitude (47.312088,9.63) or a correct longitude (47.31,9.635824). If both values have more than 2 decimal places, both are cut down to 2. This is really strange and at the moment I cannot find an explanation.

Can anybody tell me if this is a bug or if I am doing wrong?

Photo of Andreas Müller

Andreas Müller

  • 1 Post
  • 0 Reply Likes

Posted 3 years ago

  • 1

Be the first to post a reply!