Address Validation API
The API validates the given address of specified parameters.
API URL
The request URL should match the following pattern:
https://api.kartes.lv/v3//verify_address?
Noklusētais The response is given in JSON.
The HTTP GET request method is used.
Query parameters
The request consists of the following GET parameters:
Parameter | Description |
---|---|
iela | Street name |
maja | House number or name |
valsts | Country |
admin_vien | Administrative unit. |
terit_vien | Territorial unit. |
apdz_vieta | Populated place (city, town or village). |
index | Postal code. |
korpuss | Building block number. |
Response parameters
The response consists of a count of addresses matching the parameters.
Error codes
Status code | Description |
---|---|
400 | Wrong input data. Server can’t respond due to client error. |
404 | No location found. The URL is not recognized; the resource does not exist. |
5xx | Server error. |
Examples
Input:
https://api.kartes.lv/v3//verify_address?valsts=Latvija&iela=Krasta iela&maja=105A&admin_vien=Rīga&apdz_vieta=Rīga&terit_vien=Latgales priekšpilsēta&index=LV-1019
Response:
{"address":1}