Zipcodes by prefix (ES)
What this tool does
This tool helps you find a list of postal codes that share a specific starting sequence. It is designed for geographic data tasks where you need to identify areas based on the beginning of their postal code numbers. This is useful for planning, mapping, or filtering locations in a region.
When to use it
- Identifying all postal codes in a specific city or neighborhood that start with a certain number.
- Creating a list of potential locations for a marketing campaign based on a region's code prefix.
- Validating that a set of locations falls within a known geographic area defined by its codes.
- Preparing a dataset for analysis by grouping records based on their starting postal digits.
What to expect
You will receive a list of postal codes that match your requested starting sequence. If no matches are found, the tool will inform you that the list is empty.
Limitations
- The accuracy and completeness of the results depend on the available geographic data for the specific country.
- The list may not include very new or recently changed postal codes if they have not yet been added to the system.
- Results are limited to a specific number of matches to ensure performance, so very large prefix matches may be truncated.
When it fails
- The input postal code prefix is missing or left blank.
- The input format is incorrect, such as using letters instead of numbers or having the wrong length.
- No postal codes in the database start with the sequence you provided.
Good to know
- You can usually leave the country field blank if you are working with Spanish postal codes, as this is the default context.
- The results are sorted alphabetically to make them easier to read and use.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
zipcode | Yes | 080 | Enter the first few digits of the postcode you are looking for (for example, 080 for Barcelona or 28 for Madrid). This is required. |
Output data
| Field | Description |
|---|---|
value | A list of postcodes that start with the digits you entered. For example, if you search for '080', it might return '08001', '08002'. |