Address details for Spain

This page describes only country specific information for the address details response. See get address details documentation for an overview of the address details request and response in general.

Spanish address "details" property example

{
    "language": "es-ES",
    "address": {
        "country": "Spain",
        "locality": "Barcelona",
        "street": "Calle Mallorca",
        "postcode": "08029",
        "building": "56",
        "buildingNumber": 56,
        "buildingNumberAddition": null
    },
    "mailLines": [
        "Calle Mallorca 56",
        "08029 BARCELONA",
        "BARCELONA"
    ],
    "location": {
        "latitude": 41.383548,
        "longitude": 2.149269,
        "precision": "Address"
    },
    "isPoBox": false,
    "country": {
        "name": "Spain",
        "iso3Code": "ESP",
        "iso2Code": "ES"
    },
    "details": {
        "espBuilding": {
            "sourceIdentifier": "08.900.1795.56.8918408DF2881H",
            "number": 56,
            "addition": null,
            "validated": true
        },
        "espStreet": {
            "name": "Calle Mallorca",
            "addition": null
        },
        "espLocality": {
            "name": "Barcelona"
        },
        "espMunicipality": {
            "id": "08019",
            "name": "Barcelona"
        },
        "espProvince": {
            "id": "08",
            "name": "Barcelona"
        }
    }
}

Response property "details" for country code "ESP"

espBuilding: struct

hide children Spanish building details.

sourceIdentifier: string

The sources identifier for the building as found in the source dataset.

number: int or null

The number for the building.

addition: string or null

The number addition for the building if available, null otherwise.

validated: boolean

Indication whether the building could be validated. When true it means that the combination of building number and building number addition exists.

espStreet: struct

hide children Spanish street details.

name: string

Name of the street

addition: string or null

Additional information for the street if available, null otherwise.

espLocality: struct

hide children Spanish locality details.

name: string

Name of the locality.

espMunicipality: struct

hide children Spanish municipality details.

id: string

The municipality identifier (INE).

name: string

Name of the municipality.

espProvince: struct

hide children Spanish province details.

id: string

The province identifier (INE).

name: string

Name of the province.