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

{
    "id": 178,
    "name": "Esrange Space Center",
    "country_code": "SWE",
    "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_esrange_space_center_20241208021356.jpg",
    "total_launch_count": 0,
    "total_landing_count": 0,
    "pads": [
        {
            "id": 236,
            "url": "https://ll.thespacedevs.com/2.0.0/pad/236/?format=api",
            "agency_id": null,
            "name": "Launch Complex 3C",
            "info_url": null,
            "wiki_url": "https://en.wikipedia.org/wiki/Esrange#Satellite_launch_capability",
            "map_url": "https://www.google.com/maps?q=67.876724,21.166866",
            "latitude": 67.876724,
            "longitude": 21.166866,
            "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_launch_complex_3c_20241208021831.jpg",
            "total_launch_count": 0
        }
    ]
}