API endpoint that allows Location instances to be viewed.

GET: Return a list of all the existing location instances.

FILTERS: Parameters - 'name', 'country_code', 'id' Example - /2.0.0/location/?country_code=USA

GET /2.0.0/location/157/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
  "id": 157,
  "name": "SaxaVord Spaceport",
  "country_code": "GBR",
  "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_saxavord_spaceport_20211102161146.jpg",
  "total_launch_count": 0,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 237,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/237/?format=api",
      "agency_id": null,
      "name": "Unknown Pad",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/SaxaVord_Spaceport",
      "map_url": "https://www.google.com/maps?q=60.8184,-0.7692",
      "latitude": 60.8184,
      "longitude": -0.7692,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_unknown_pad_20241227075133.jpg",
      "total_launch_count": 0
    },
    {
      "id": 214,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/214/?format=api",
      "agency_id": null,
      "name": "Launch Pad Elizabeth",
      "info_url": null,
      "wiki_url": null,
      "map_url": null,
      "latitude": null,
      "longitude": null,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_launch_pad_elizabeth_20231013025957.jpg",
      "total_launch_count": 0
    },
    {
      "id": 205,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/205/?format=api",
      "agency_id": 1045,
      "name": "Launch Pad Fredo",
      "info_url": "https://saxavord.com/",
      "wiki_url": "https://en.wikipedia.org/wiki/SaxaVord_Spaceport",
      "map_url": "https://www.google.com/maps?q=60.81736038715111,-0.7626391593025057",
      "latitude": 60.81736038715111,
      "longitude": -0.7626391593025057,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_launch_pad_fredo_20230112225206.jpg",
      "total_launch_count": 0
    },
    {
      "id": 213,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/213/?format=api",
      "agency_id": null,
      "name": "Launch Pad Callum",
      "info_url": null,
      "wiki_url": null,
      "map_url": null,
      "latitude": null,
      "longitude": null,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_launch_pad_callum_20231013025800.jpg",
      "total_launch_count": 0
    }
  ]
}