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/27/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
  "id": 27,
  "name": "Kennedy Space Center, FL, USA",
  "country_code": "USA",
  "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_27_20200803142447.jpg",
  "total_launch_count": 280,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 4,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/4/?format=api",
      "agency_id": 44,
      "name": "Launch Complex 39B",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_39#Launch_Pad_39B",
      "map_url": "https://www.google.com/maps?q=28.62711233,-80.62101503",
      "latitude": 28.62711233,
      "longitude": -80.62101503,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_4_20200803143518.jpg",
      "total_launch_count": 59
    },
    {
      "id": 30,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/30/?format=api",
      "agency_id": null,
      "name": "Launch Complex 48",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_48",
      "map_url": "https://www.google.com/maps?q=28.5990626125553,-80.60428186",
      "latitude": 28.5990626125553,
      "longitude": -80.60428186,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_30_20200803143320.jpg",
      "total_launch_count": 0
    },
    {
      "id": 87,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/87/?format=api",
      "agency_id": 121,
      "name": "Launch Complex 39A",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_39#Launch_Pad_39A",
      "map_url": "https://www.google.com/maps?q=28.60822681,-80.60428186",
      "latitude": 28.60822681,
      "longitude": -80.60428186,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_87_20200803143537.jpg",
      "total_launch_count": 221
    },
    {
      "id": 203,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/203/?format=api",
      "agency_id": 121,
      "name": "Launch Complex 39A Starship Pad",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_39A",
      "map_url": "https://www.google.com/maps?q=28.60822681,-80.60428186",
      "latitude": 28.60822681,
      "longitude": -80.60428186,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_launch_complex_39a_20220818090654.jpg",
      "total_launch_count": 0
    }
  ]
}