---
title: "Returns the safety rating of a given area"
method: GET
path: "/safety/safety-rated-locations/by-square"
tags: ["Search"]
deprecated: true
---

# Returns the safety rating of a given area

`GET /safety/safety-rated-locations/by-square`

## Request

- Base URL: `https://test.api.amadeus.com/v1`
- URL: `https://test.api.amadeus.com/v1/safety/safety-rated-locations/by-square`
- Auth: none declared
- TypeScript: <https://skmtc.dev/amadeus4dev/apis/safe-place/docs/safety/safety-rated-locations/by-square/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

## Query parameters

- `north` number, double, required
- `west` number, double, required
- `south` number, double, required
- `east` number, double, required
- `page[limit]` integer
- `page[offset]` integer

## Response `200`

Successful Operation

- object
  - `warnings` Issue[]
    - `status` integer: the HTTP status code applicable to this error
    - `code` integer: an application-specific error code
    - `title` string: a short summary of the error
    - `detail` string: explanation of the error
    - `source` object: an object containing references to the source of the error
      - `pointer` string: a JSON Pointer [RFC6901] to the associated entity in the request document
      - `parameter` string: a string indicating which URI query parameter caused the issue
      - `example` string: a string indicating an example of the right value
  - `meta` CollectionMeta
    - `count` integer
    - `links` object
      - `self` string, uri
      - `next` string, uri
      - `previous` string, uri
      - `last` string, uri
      - `first` string, uri
      - `up` string, uri
  - `data` SafetyRatedLocation[], required
    - `safetyScore` SafetyScore
      - `women` integer: Likelihood of inappropriate behavior against females. Score go from 1 (not likely) to 100 (very likely).
      - `physicalHarm` integer: Likelihood of injury due to harmful intent. Score go from 1 (not likely) to 100 (very likely).
      - `theft` integer: Likelihood of theft. Score go from 1 (not likely) to 100 (very likely).
      - `politicalFreedom` integer: Potential for infringement of political rights or political unrest. Score go from 1 (not likely) to 100 (very likely).
      - `lgbtq` integer: Likelihood of harm or discrimination against LGBTQ persons or groups and level of caution required at location. Score go from 1 (not likely) to 100 (very likely).
      - `medical` integer: Likelihood of illness or disease, assessment of water and air quality, and access to reliable medical care. Score go from 1 (not likely) to 100 (very likely).
      - `overall` integer: An average of the 6 “sub”-categories. Score go from 1 (very safe) to 100 (very dangerous).
    - `id` string: id of the ressource
    - `self` Links
      - `href` string, uri, required
      - `methods` string[]
      - `count` integer
    - `type` string: the resource name
    - `subType` 'AIRPORT' | 'CITY' | 'POINT_OF_INTEREST' | 'DISTRICT': location sub type
    - `name` string: short name of the location
    - `geoCode` GeoCode
      - `latitude` number, double: latitude of the location
      - `longitude` number, double: longitude of the location

## Other responses

- `400`: code | title ------- | ------------------------------------- 477 | INVALID FORMAT 572 | INVALID OPTION 4926 | INVALID DATA RECEIVED 32171 | MANDATORY DATA MISSING
- `default`: Unexpected Error

## Changes

- **2024-03-15** `28ca553c05c9`: 1 info
  - endpoint deprecated

[Operation history](https://skmtc.dev/amadeus4dev/apis/safe-place/changes/safety/safety-rated-locations/by-square/get.md)

---

[API](https://skmtc.dev/amadeus4dev/apis/safe-place.md) - [All operations](https://skmtc.dev/amadeus4dev/apis/safe-place/llms.txt) - [OpenAPI document](https://skmtc.dev/amadeus4dev/apis/safe-place/revisions/28ca553c05c9?raw)
