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

{
  "id": 159,
  "name": "Sutherland Spaceport",
  "country_code": "GBR",
  "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/location_sutherland_spaceport_20220511180155.jpg",
  "total_launch_count": 0,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 201,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/201/?format=api",
      "agency_id": null,
      "name": "Launch Complex",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Sutherland_spaceport",
      "map_url": "https://www.google.com/maps?q=58.022058,-4.402414",
      "latitude": 58.022058,
      "longitude": -4.402414,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_201_20220511181044.jpg",
      "total_launch_count": 0
    }
  ]
}