Retrieve
Retieve safety information of a location by its Id.
Changed onget/safety/safety-rated-locations/{safety-rated-locationId}
Request
- Base URLhttps://test.api.amadeus.com/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successful Operation
Example response
{
"meta": {
"links": {
"self": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402719"
}
},
"data": [
{
"type": "safety-rated-location",
"id": "Q930402719",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402719",
"methods": [
"GET"
]
},
"subType": "CITY",
"name": "Barcelona",
"geoCode": {
"latitude": 41.385064,
"longitude": 2.173404
},
"safetyScores": {
"lgbtq": 39,
"medical": 0,
"overall": 45,
"physicalHarm": 36,
"politicalFreedom": 50,
"theft": 44,
"women": 34
}
}
]
}Changes
- info
endpoint deprecated
- info