Is there a way of determining the utcOffset using the geolocation data? If not this would be a useful addition.

Answer Count: 
1

You can determine the offset amount by setting the useLocalTime=true parameter. The results on the time stamp will show plus or minus the number of hours adjusted.

Note using the useLocalTime parameter returns the locations 0:00 hour: https://api.awhere.com/v2/weather/locations/25.485636,-108.46506/forecasts?useLocalTime=true

"date": "2020-01-28", "location":

{ "latitude": 25.4856358, "longitude": -108.4650574 } , "forecast": [ { "startTime": "2020-01-28T00:00:00-07:00", "endTime": "2020-01-28T00:59:59-07:00", "conditionsCode": "611", "conditionsText": "Clear Night, No Rain, Light Wind/Calm", "temperatures": { "value": 14.003026962280273, "max": 15.115566253662109, "min": 13.857884407043457, "units": "C"

Compared to which returns the UTC 0:00 hour: https://api.awhere.com/v2/weather/locations/25.485636,-108.46506/forecasts

"date": "2020-01-28", "location":

{ "latitude": 25.4856358, "longitude": -108.4650574 } , "forecast": [ { "startTime": "2020-01-28T00:00:00+00:00", "endTime": "2020-01-28T00:59:59+00:00", "conditionsCode": "611", "conditionsText": "Clear Night, No Rain, Light Wind/Calm", "temperatures": { "value": 17.136327743530273, "max": 23.612773895263672, "min": 17.135215759277344, "units": "C"

Tuesday, January 28, 2020 - 10:09
Beau Bush