API endpoint that allows Location instances to be viewed.

GET: Return a list of all the existing location instances.

FILTERS: Parameters - 'id', 'agency_id', 'name', 'name__contains', 'latitude', 'latitude__contains', 'longitude', 'longitude__contains', 'location__name', 'location__name__contains', 'location__id', 'orbital_launch_attempt_count', 'total_launch_count'

ORDERING: Fields - 'id', 'name', 'location__id', 'location__name', 'orbital_launch_attempt_count', 'total_launch_count'

Example - /2.2.0/pad/?ordering=location__name

GET /2.2.0/pad/45/?format=api
HTTP 200 OK
Allow: GET
Content-Type: application/json
Vary: Accept

{
    "id": 45,
    "url": "https://ll.thespacedevs.com/2.2.0/pad/45/?format=api",
    "agency_id": null,
    "name": "Launch Complex 2 (LC-2)",
    "description": "",
    "info_url": null,
    "wiki_url": "https://en.wikipedia.org/wiki/Xichang_Satellite_Launch_Center",
    "map_url": "https://www.google.com/maps?q=28.245564,102.026751",
    "latitude": "28.245564",
    "longitude": "102.026751",
    "location": {
        "id": 16,
        "url": "https://ll.thespacedevs.com/2.2.0/location/16/?format=api",
        "name": "Xichang Satellite Launch Center, People's Republic of China",
        "country_code": "CHN",
        "description": "The Xichang Satellite Launch Center is a spaceport in China. It is located in Zeyuan Town, northwest of Xichang, Liangshan Yi Autonomous Prefecture in Sichuan.",
        "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/location_16_20200803142513.jpg",
        "timezone_name": "Asia/Shanghai",
        "total_launch_count": 224,
        "total_landing_count": 0
    },
    "country_code": "CHN",
    "map_image": "https://thespacedevs-prod.nyc3.digitaloceanspaces.com/media/map_images/pad_45_20200803143520.jpg",
    "total_launch_count": 118,
    "orbital_launch_attempt_count": 118
}