diff --git a/README.md b/README.md index 1292451fdd7..4f3540e0f96 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ High performance routing engine written in C++14 designed to run on OpenStreetMa The following services are available via HTTP API, C++ library interface and NodeJs wrapper: - Nearest - Snaps coordinates to the street network and returns the nearest matches - Route - Finds the fastest route between coordinates -- Table - Computes the duration of the fastest route between all pairs of supplied coordinates, and optionally returns distances of these routes. +- Table - Computes the duration or distances of the fastest route between all pairs of supplied coordinates - Match - Snaps noisy GPS traces to the road network in the most plausible way - Trip - Solves the Traveling Salesman Problem using a greedy heuristic - Tile - Generates Mapbox Vector Tiles with internal routing metadata diff --git a/docs/http.md b/docs/http.md index 415b2bd8893..e3790523bfd 100644 --- a/docs/http.md +++ b/docs/http.md @@ -222,7 +222,7 @@ curl 'http://router.project-osrm.org/route/v1/driving/13.388860,52.517037;13.397 ### Table service -Computes the duration of the fastest route between all pairs of supplied coordinates. Optinally, also returns the distances between the coordinate pairs. Note that the distances are not the shortest distance between two coordinates, but rather the distances of the fastest routes. +Computes the duration of the fastest route between all pairs of supplied coordinates. Optionally, also returns the distances between the coordinate pairs. Note that the distances are not the shortest distance between two coordinates, but rather the distances of the fastest routes. ```endpoint GET /table/v1/{profile}/{coordinates}?{sources}=[{elem}...];&{destinations}=[{elem}...]&annotations={duration|distance|duration,distance} @@ -236,7 +236,7 @@ In addition to the [general options](#general-options) the following options are |------------|--------------------------------------------------|---------------------------------------------| |sources |`{index};{index}[;{index} ...]` or `all` (default)|Use location with given index as source. | |destinations|`{index};{index}[;{index} ...]` or `all` (default)|Use location with given index as destination.| -|annotations |`duration` (default), `distance` |Return additional table with distances to the response. Whether requested or not, the duration table is always returned.| +|annotations |`duration` (default), `distance`, or `duration,distance`|Return additional table with distances to the response. Whether requested or not, the duration table is always returned.| Unlike other array encoded options, the length of `sources` and `destinations` can be **smaller or equal** to number of input locations;