Search
Returns the safety rating of a given area
Changed onget/safety/safety-rated-locations/by-square
Request
- Base URLhttps://test.api.amadeus.com/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
northnumber double required
Latitude north of bounding box (decimal coordinates)
westnumber double required
Longitude west of bounding box (decimal coordinates)
southnumber double required
Latitude south of bounding box (decimal coordinates)
eastnumber double required
Longitude east of bounding box (decimal coordinates)
page[limit]integer
maximum items in one page
page[offset]integer
start index of the requested page
Response
Successful Operation
Example response
{
"meta": {
"count": 43,
"links": {
"self": "https://test.api.amadeus.com/v1/safety/safety-rated-locations?latitude=41.397158&longitude=2.160873&radius=2",
"next": "https://test.api.amadeus.com/v1/safety/safety-rated-locations?latitude=41.397158&longitude=2.160873&page%5Boffset%5D=1&radius=2",
"last": "https://test.api.amadeus.com/v1/safety/safety-rated-locations?latitude=41.397158&longitude=2.160873&page%5Boffset%5D=4&radius=2",
"first": "https://test.api.amadeus.com/v1/safety/safety-rated-locations?latitude=41.397158&longitude=2.160873&page%5Boffset%5D=0&radius=2"
}
},
"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
}
},
{
"type": "safety-rated-location",
"id": "Q930402720",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402720",
"methods": [
"GET"
]
},
"subType": "DISTRICT",
"name": "Antiga Esquerra de l'Eixample (Barcelona)",
"geoCode": {
"latitude": 41.3885573,
"longitude": 2.1573033
},
"safetyScores": {
"lgbtq": 37,
"medical": 0,
"overall": 44,
"physicalHarm": 34,
"politicalFreedom": 50,
"theft": 42,
"women": 33
}
},
{
"type": "safety-rated-location",
"id": "Q930402721",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402721",
"methods": [
"GET"
]
},
"subType": "DISTRICT",
"name": "Baix Guinardó (Barcelona)",
"geoCode": {
"latitude": 41.412131,
"longitude": 2.1683571
},
"safetyScores": {
"lgbtq": 37,
"medical": 0,
"overall": 44,
"physicalHarm": 34,
"politicalFreedom": 50,
"theft": 42,
"women": 33
}
},
{
"type": "safety-rated-location",
"id": "Q930402722",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402722",
"methods": [
"GET"
]
},
"subType": "DISTRICT",
"name": "Barceloneta (Barcelona)",
"geoCode": {
"latitude": 41.380894,
"longitude": 2.189385
},
"safetyScores": {
"lgbtq": 42,
"medical": 0,
"overall": 47,
"physicalHarm": 39,
"politicalFreedom": 50,
"theft": 49,
"women": 34
}
},
{
"type": "safety-rated-location",
"id": "Q930402724",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402724",
"methods": [
"GET"
]
},
"subType": "DISTRICT",
"name": "Can Baró (Barcelona)",
"geoCode": {
"latitude": 41.4172284,
"longitude": 2.163444
},
"safetyScores": {
"lgbtq": 37,
"medical": 0,
"overall": 44,
"physicalHarm": 34,
"politicalFreedom": 50,
"theft": 42,
"women": 33
}
},
{
"type": "safety-rated-location",
"id": "Q930402731",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402731",
"methods": [
"GET"
]
},
"subType": "DISTRICT",
"name": "El Born (Barcelona)",
"geoCode": {
"latitude": 41.384728,
"longitude": 2.18286
},
"safetyScores": {
"lgbtq": 42,
"medical": 0,
"overall": 47,
"physicalHarm": 39,
"politicalFreedom": 50,
"theft": 49,
"women": 34
}
},
{
"type": "safety-rated-location",
"id": "Q930402732",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402732",
"methods": [
"GET"
]
},
"subType": "DISTRICT",
"name": "El Camp de l'Arpa del Clot (Barcelona)",
"geoCode": {
"latitude": 41.4118532,
"longitude": 2.1830997
},
"safetyScores": {
"lgbtq": 37,
"medical": 0,
"overall": 45,
"physicalHarm": 35,
"politicalFreedom": 50,
"theft": 43,
"women": 33
}
},
{
"type": "safety-rated-location",
"id": "Q930402733",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402733",
"methods": [
"GET"
]
},
"subType": "DISTRICT",
"name": "El Camp d'en Grassot i Gràcia Nova (Barcelona)",
"geoCode": {
"latitude": 41.4046685,
"longitude": 2.1659005
},
"safetyScores": {
"lgbtq": 37,
"medical": 0,
"overall": 44,
"physicalHarm": 34,
"politicalFreedom": 50,
"theft": 42,
"women": 33
}
},
{
"type": "safety-rated-location",
"id": "Q930402734",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402734",
"methods": [
"GET"
]
},
"subType": "DISTRICT",
"name": "El Carmel (Barcelona)",
"geoCode": {
"latitude": 41.422371,
"longitude": 2.1560753
},
"safetyScores": {
"lgbtq": 37,
"medical": 0,
"overall": 44,
"physicalHarm": 34,
"politicalFreedom": 50,
"theft": 42,
"women": 33
}
},
{
"type": "safety-rated-location",
"id": "Q930402735",
"self": {
"type": "https://test.api.amadeus.com/v1/safety/safety-rated-locations/Q930402735",
"methods": [
"GET"
]
},
"subType": "DISTRICT",
"name": "El Clot (Barcelona)",
"geoCode": {
"latitude": 41.4097037,
"longitude": 2.1892366
},
"safetyScores": {
"lgbtq": 37,
"medical": 0,
"overall": 45,
"physicalHarm": 35,
"politicalFreedom": 50,
"theft": 43,
"women": 33
}
}
]
}Changes
- info
endpoint deprecated
- info