From 6c9c66a937ffc5816137fccf1a892f935a76b9f7 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 17 Jul 2016 00:24:50 +0000 Subject: [PATCH] update readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3353ff4..c7e0cad 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ The open source iOS [GPS Logger](https://github.com/esripdx/GPS-Logger-iOS) will To read a database, make a GET request as follows: +#### Get all data for a calendar day + `GET /api/query` * token - (required) the read token for the database @@ -37,12 +39,16 @@ To read a database, make a GET request as follows: * linestring - combine all the returned results into a GeoJSON linestring * date - specify a date to return all data on that day (YYYY-mm-dd format) +#### Get the last location before a given timestamp + `GET /api/last` * token - (required) the read token for the database * tz - (optional, default UTC) timezone string (e.g. America/Los_Angeles) which will be used to determine the absolute start/end times for the day * before - (optional, default to now) specify a full timestamp to return a single record before this date (the point returned will be no more than 24 hours before the given date) * geocode - (optional) if "true", then the location found will be reverse geocoded using [Atlas](https://atlas.p3k.io) to find the city and timezone at the location +#### Find the last location matching a clock time + `GET /api/find-from-localtime` This API method can help you answer the question "Where was I when my watch read 9:30am on July 15th?".