Locations
Get photos of a location
Photos of one location published under a free licence, the best first: of its port, or of the place where its port has none, then of its airport. Each is served from waykite.com, with its credit, its licence and the page it is published on, which the licence asks to be shown beside it.
When no location has the code, the response is 204 No Content, with an empty body.
apiKeyAuthorizationBearer <token>An API key from the dashboard: a secret key (wk_sk_) from servers, or a publishable key (wk_pk_) from the origins listed on it. A workload can send its token in place of a secret key. See Authentication.
code*stringThe location's code, e.g. NLRTM.
1 <= lengthThe location's photos, the best first.
application/json- response
[index: integer]?curl -X GET 'https://waykite.com/api/v1/locations/string/photos'[
{
"url": "https://waykite.com/view/locations/NLRTM/photos/123456789",
"width": 1280,
"height": 853,
"credit": "A. Photographer",
"license": "CC-BY-4.0",
"source": "https://commons.wikimedia.org/wiki/File:Port_of_Rotterdam.jpg"
}
]Get a location GET
Look up one location by its code. The code is the location's five-character UN/LOCODE: the country's two letters, then three letters or digits, e.g. `USNYC` or `SGSIN`. Case does not matter. When no location has the code, the response is `204 No Content`, with an empty body.
Nearby locations GET
Find the locations closest to a point, nearest first. Useful for anything with a position and no code of its own: a terminal, a jetty or an offshore unit and the port it belongs to, or a point on a map. Distances are great-circle distances in kilometres, rounded to 0.1 km. Locations without coordinates are never returned.