When processing the most recent location update this gets pushed over the
websocket to update the live map last position. If a card is present it
needs to be added just before this push occurs.
Puts the tzinfo function and calls into a guarded block so that the
config option can be turned off and still build the project.
In line_to_location, put the whole if statement in a guarded block as
both parts are using guards anyway.
Signed-off-by: Pat Thoyts <pat.thoyts@gmail.com>
When receiving a location update check that it is newer than the last
update from the same device before updating the 'last' record. This
ensures the 'last' record is always the most recent update from the device
in the event updates arrive out of order.
The locarray json data is transferred to the response object and if
it is deleted here results in an empty object being returned to the user
and the default view just shows "Imported data is malformed" instead of
a map. This restores the vmap functionality.
Signed-off-by: Pat Thoyts <pat.thoyts@gmail.com>
Current hook just governs whether the record is written, but this means that the `last` file
and the live websocket would still be updated with data that the user decided to filter. Now
we use the hook to skip those steps as well.
Update HOOKS.md to note the functionality change
The coordinates of this waypoint may or may not be their current location, but
if they happen to cause the user to move across a waypoint radius boundary, this
check will fire the lua hook with a transition event
- FIX: Tour data (requests and submissions) contain corrupt data in .rec file
b/c of pretty-printing (#437)
- UPD: Change permissions (+r) on binaries (#428)
- NEW: Add support for dumping POI in GeoJSON format (#439)
- FIX: create {static,utils}/index.html to avoid directory listing
- FIX: remove HikeBike layer (and control) from views (#442)
- UPD: Autoload track in Recorder views / tours (#441)
- NEW: Optionally enhance API data with timezone at location's position (#444)
- UPD: locations API returns Recorder version number alongside count/status
- NEW: add experimental utility with which to enhance ghash/ with tzdata
- UPD: location and tzname are stored in ghash cache only if they're non-null
- UPD: Reduce default size of LMDB to 5368709120 (5GB); it can be configured via environment
- UPD: Improve gcache error handling
- FIX: Add missing OTR_HTTPPREFIX to ot-defaults (#440)