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

{
  "id": 2,
  "name": "Semnan Space Center, Islamic Republic of Iran",
  "country_code": "IRN",
  "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/location_2_20200803142458.jpg",
  "total_launch_count": 15,
  "total_landing_count": 0,
  "pads": [
    {
      "id": 88,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/88/?format=api",
      "agency_id": 34,
      "name": "Imam Khomeini Spaceport",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Imam_Khomeini_Spaceport",
      "map_url": "https://www.google.com/maps?q=35.237005,53.9505",
      "latitude": 35.237005,
      "longitude": 53.9505,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_88_20200803143310.jpg",
      "total_launch_count": 7
    },
    {
      "id": 58,
      "url": "https://lldev.thespacedevs.com/2.0.0/pad/58/?format=api",
      "agency_id": null,
      "name": "Safir Launch Pad",
      "info_url": null,
      "wiki_url": "https://en.wikipedia.org/wiki/Semnan_Space_Center#Circular_launch_platform",
      "map_url": "https://www.google.com/maps?q=35.23462,53.920936",
      "latitude": 35.23462,
      "longitude": 53.920936,
      "map_image": "https://thespacedevs-dev.nyc3.digitaloceanspaces.com/media/map_images/pad_58_20200803143301.jpg",
      "total_launch_count": 8
    }
  ]
}