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

{
  "id": 7,
  "name": "Sohae Satellite Launching Station,  Cholsan County, North Pyongan Province, Democratic People's Republic of Korea",
  "country_code": "PRK",
  "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_7_20200803142414.jpg",
  "total_launch_count": 7,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 208,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/208/?format=api",
      "agency_id": null,
      "name": "Malligyong-1 Pad",
      "info_url": null,
      "wiki_url": null,
      "map_url": "https://goo.gl/maps/DgkrTCHCsAcw1CWR7",
      "latitude": 39.652861,
      "longitude": 124.736639,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_unknown_pad_prk_2023_20230601125308.jpg",
      "total_launch_count": 4
    },
    {
      "id": 74,
      "url": "https://ll.thespacedevs.com/2.0.0/pad/74/?format=api",
      "agency_id": 40,
      "name": "Unha Launch Pad",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Sohae_Satellite_Launching_Station",
      "map_url": "https://www.google.com/maps?q=39.660065,124.705366",
      "latitude": 39.660065,
      "longitude": 124.705366,
      "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_74_20200803143358.jpg",
      "total_launch_count": 3
    }
  ]
}