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

{
  "id": 25,
  "name": "Pacific Spaceport Complex, Alaska, USA",
  "country_code": "USA",
  "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/location_25_20200803142500.jpg",
  "total_launch_count": 9,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 57,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/57/?format=api",
      "agency_id": null,
      "name": "Launch Pad 1",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Pacific_Spaceport_Complex_%E2%80%93_Alaska",
      "map_url": "https://www.google.com/maps?q=57.435833,-152.337778",
      "latitude": 57.435833,
      "longitude": -152.337778,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_57_20200803143509.jpg",
      "total_launch_count": 3
    },
    {
      "id": 199,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/199/?format=api",
      "agency_id": null,
      "name": "Launch Pad 3C",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Pacific_Spaceport_Complex_%E2%80%93_Alaska",
      "map_url": "https://www.google.com/maps?q=57.431239,-152.350749",
      "latitude": 57.431239,
      "longitude": -152.350749,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_199_20220904142623.jpg",
      "total_launch_count": 1
    },
    {
      "id": 114,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/114/?format=api",
      "agency_id": null,
      "name": "Launch Pad 3B",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Pacific_Spaceport_Complex_%E2%80%93_Alaska",
      "map_url": "https://www.google.com/maps?q=57.430673,-152.353077",
      "latitude": 57.430673,
      "longitude": -152.353077,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_114_20200803145248.jpg",
      "total_launch_count": 5
    }
  ]
}