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

{
  "id": 5,
  "name": "Dombarovskiy, Russian Federation",
  "country_code": "RUS",
  "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/location_5_20200803142425.jpg",
  "total_launch_count": 10,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 182,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/182/?format=api",
      "agency_id": null,
      "name": "370/11",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Dombarovsky_Air_Base",
      "map_url": "https://www.google.com/maps?q=51.0938889,59.8400282",
      "latitude": 51.0938889,
      "longitude": 59.8400282,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_182_20200803143504.jpg",
      "total_launch_count": 2
    },
    {
      "id": 183,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/183/?format=api",
      "agency_id": null,
      "name": "370/13",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Dombarovsky_Air_Base",
      "map_url": "https://www.google.com/maps?q=51.0938889,59.8400282",
      "latitude": 51.0938889,
      "longitude": 59.8400282,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_183_20200803143512.jpg",
      "total_launch_count": 8
    },
    {
      "id": 44,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/44/?format=api",
      "agency_id": null,
      "name": "Unknown Pad",
      "info_url": null,
      "wiki_url": "",
      "map_url": "https://www.google.com/maps?q=51.036,59.958",
      "latitude": 51.036,
      "longitude": 59.958,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_44_20200803143327.jpg",
      "total_launch_count": 0
    }
  ]
}