Location requested in WeatherService monthlyStatistics() does NOT match the location in the response

We pass a CLLocation to the new WeatherService monthlyStatistics() BUT in the returned metadata the CLLocation data does NOT match what we sent in the request.

For example, send lat -27.1480114 long -109.4273371 in the monthly stat request and get back data for lat -27.148000717163086, long -109.427001953125.

There’s no mention in the documentation of the returned location being “close to” the requested location. If this is working as designed how close are the results allowed to be? In my small sample they seem to be around 45-55 meters away. I’m considering less than 100 meters away to be a match, but don’t know if that’s correct.

Answered by Engineer in 797978022

We artificially limit the precision of our forecast coordinates to three decimal places. This means the coordinates may be off by up to 111m at the equator (and less further away from the equator). We think this is fine because weather forecasts (even next-hour forecasts with radar) are not precise enough to show a meaningful difference at that scale.

Accepted Answer

We artificially limit the precision of our forecast coordinates to three decimal places. This means the coordinates may be off by up to 111m at the equator (and less further away from the equator). We think this is fine because weather forecasts (even next-hour forecasts with radar) are not precise enough to show a meaningful difference at that scale.

Location requested in WeatherService monthlyStatistics() does NOT match the location in the response
 
 
Q