Locations

Get photos of a location

GET
/api/v1/locations/{code}/photos

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.

Authorization

apiKey
headerAuthorizationBearer <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.

Path Parameters

code*string

The location's code, e.g. NLRTM.

Length1 <= length

Response Body

The location's photos, the best first.

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://waykite.com/api/v1/locations/string/photos'
Example Response
[
  {
    "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"
  }
]