communitysnowobs / cso-api

0 stars 2 forks source link

Incorporate new location information elements from the MH server API response #29

Open emiliom opened 3 years ago

emiliom commented 3 years ago

Pasting here from @BobTorgerson's 2021-10-1 email. This is something we'll want to add to the CSO data harvester (import API) and to the CSO database.

we are adding a couple of new fields for every new observation added to Mountain Hub along with our bug fixes and feature additions in mid-October.

These two fields will be returned in the https://api.mountainhub.com/timeline for each observation as location_accuracy and location_changed. These two fields are as follows:

emiliom commented 3 years ago

From Craig Stephenson, UAF/SNAP:

A new version (3.1.0) of the Mountain Hub iOS and Android apps was released last week that adds new location_accuracy and location_changed fields to observations:

location_accuracy: The GPS accuracy (in meters) of the observation. Users are able to set their desired GPS accuracy and timeout values to improve the accuracy if necessary.

location_changed: This is set to true if the user chose their location manually, in which case the GPS accuracy is no longer relevant to the observation. If the user did not choose their location manually, this is set to false.

These new fields are starting to show up in the Mountain Hub timeline API for users who have updated their app: https://api.mountainhub.com/timeline