The SINGLE endpoint converts geographic coordinates (latitude and longitude) into a street address.
Related Geocoding documentation:
/SINGLE/
Request
Both GET and POST are supported.
Code examples
Valid coordinates
Replace the values in braces with your own information:
| Parameter | Description | Mand / Opt |
|---|---|---|
| SERVER_ADDRESS | DQE server address used to process the request. | Mandatory |
| Licence | Your DQE licence code. | Mandatory |
| Pays | ISO 3-letter country code. | Mandatory |
| Lat | Latitude in decimal format. | Mandatory |
| Lon | Longitude in decimal format. | Mandatory |
| DistAdr | Search radius in kilometers. | Mandatory |
Send all parameters in the request body using
Content-Type: application/x-www-form-urlencoded.
The server address remains in the URL.
Code examples
Valid coordinates
Add the following parameters in the request body using
x-www-form-urlencoded.
| Parameter | Description | Mand / Opt |
|---|---|---|
| Licence | Your DQE licence code. | Mandatory |
| Pays | ISO 3-letter country code. | Mandatory |
| Lat | Latitude in decimal format. | Mandatory |
| Lon | Longitude in decimal format. | Mandatory |
| DistAdr | Search radius in kilometers. | Mandatory |
Response
The JSON response is a dictionary whose keys are numbered from
1
to n. Each element contains the following keys:
| Key | Description | France | International |
|---|---|---|---|
| IDLocalite | Unique code for each city. For France, this is the INSEE code. | STRING(10) | STRING(10) |
| Pays | ISO country code. | STRING(3) | STRING(3) |
| CodePostal | Postal code of the city. | INTEGER(5) | STRING(10) |
| Localite | City name. | STRING(38) | STRING(50) |
| Cedex | Indicates if it is a cedex. | STRING(1) | STRING(1) |
| IDVoie | Unique street identifier. | INTEGER(8) | STRING(10) |
| CodeVoie | Street's unique code. | INTEGER(8) | STRING(10) |
| Voie | Street name. | STRING(38) | STRING(50) |
| Numero / Num | Street number. | INTEGER(4) | INTEGER(4) |
| NbNumero | Number of street numbers found. | INTEGER(4) | INTEGER(4) |
| Instance | Value passed in the request and returned in the response. | INTEGER(1) | INTEGER(1) |
| Saisie | Empty. | - | - |
| ListeNumero | Empty. | - | - |
Example:
Test the API
Click the button below to test this endpoint live in your browser.
Open console
See also
Related to