Mexico (MEX)

This section defines the supported geocoding datasets, operations, and input and output field information for Mexico.

Supported Geocoding Datasets

The following table lists the supported geocoding dataset(s) with the available geocoding levels for Mexico.

Note: Custom User Dictionaries are not supported.
Geocoding Dataset City Centroid Suburb/Village Centroid Postal Centroid Street Centroid Interpolated Street Address Point-level Address Point of Interest
HERE Spanish Yes Yes Yes Yes Yes Yes No
TomTom Spanish Yes Yes Yes Yes Yes Yes Yes

Supported Operations

The following operations are supported for Mexico:
  • Geocoding—Takes one or more addresses as input and returns latitude/longitude coordinates and other information.
  • Reverse Geocoding—Takes one or more latitude and longitude coordinates as input and returns the address of the location.
  • Interactive Geocoding— Returns potential match candidates as the adddress is typed in.
  • Global Key Lookup—Returns geocode candidates when given a unique key as input. USA MLD and AUS GNAF data only.

Input Fields

The input address may contain some or all of the following address elements.

Parameter Type Description
placeName String Specifies the building name, place name, Point of Interest (POI), company or firm name associated with the input address. Optional.
mainAddress String Single Line Input—If no other address field is populated, then the mainAddress entry will be treated as a single line input. Single line input can consist of multiple input address fields ; these should be entered in the typical address order for the country. For more details, refer to the section "Single Line Input" below.

Street Address—If the post address components (city, postalCode, etc.) are provided separately or in the lastLine field, then the contents of mainAddress will be treated as the street address part and can include company name, house number, building names and street names. Optional.

Street Intersection Input—To enter an intersection, specify the two street names separated by a double ampersand (&&).

lastLine String The last line of the address. Optional. For example:

Nezahualcoyotl 109
77520 Cancun, Q. ROO

areaName1 String Specifies the state. Optional.
areaName2 String Specifies the province. Optional.
areaName3 String The city or town name. Your input address should use the official city name or alias. For example, either Miguel Hidalgo or Mexico City can be used. Optional.
areaName4 String Specifies the locality. Optional.
postalCode String Specifies the 5-digit postal code. The first two digits identify the state (or a part thereof), except for Nos. 00 to 16, which indicate delegaciones (boroughs) of the Federal District (Mexico City). The third digit indicates an important city or town. The fourth digit indicates a municipality or suburb within a town. The last digit indicates a group of blocks or the specific street address of a large user. Optional.
country String The three-letter ISO 3166-1 Alpha-3 country code. For Mexico, the country code is MEX. Required for forward geocoding.

Address Guidelines for Mexico

Follow these suggestions to ensure that your input address data is in the best format possible for optimum matching and geocoding. For additional recommendations about the Mexican postal system, see the Correos de México website http://www.sepomex.gob.mx/Paginas/Home.aspx.

  • Required fields—Addresses must contain either a city or a postal code.
  • Aliases for states—You can use state aliases. For example, if you enter "YUC" it would match to Yucatán.

    State

    Alias

    Aguascalientes

    AGS/AG/AGU

    Baja California

    Bassa California/Neder-Californië/BC/BJ/BN/ BAJ/B C

    Baja California Sur

    Bassa California del Sud/BCS/BS/BAS/B C S

    Campeche

    CAM/CP/CM

    Chiapas

    CHIS/CH/CU/CHP

    Chihuahua

    CHIH/CI/CL/CHU

    Colima

    COL/CL/CH

    Coahuila de Zaragoza

    COAH/CU/CS/COA/CZ/C Z/Coahuila

    Distrito Federal

    Distretto Federale/DF/MDF/D F

    Durango

    DGO/DG/DUR

    Guanajuato

    GTO/GJ/GT/GUA

    Guerrero

    GRO/GR/GUE

    Hidalgo

    HGO/HG/HID

    Jalisco

    JAL/JA

    México

    Mexico/Mexiko/Meksiko/Messico/MEX/EM/MX

    Michoacán de Ocampo

    MICH/MH/MC/MIC/MO/M O/Michoacan

    Morelos

    MOR/MR

    Nayarit

    NAY/NA

    Nuevo León

    NL/NUE/N L

    Oaxaca

    OAX/OA

    Puebla

    PUE/PU/PUB

    Querétaro Arteaga

    QRO/QA/QE/QDA/Q A/Queretaro

    Quintana Roo

    QROO/QR/QI/QRO/Q R/Q Roo

    San Luis Potosí

    San Luis Potosí

    Sinaloa

    SIN/SI

    Sonora

    SON/SO

    Tabasco

    TAB/TA/TB

    Tamaulipas

    TAMPS/TM/TAM

    Tlaxcala

    TLAX/TL/TLX

    Veracruz de Ignacio de la Llave

    VER/VZ/VE/VCL/Veracruz

    Yucatán

    Yucatan/YUC/YC/YU

    Zacatecas

    ZAC/ZT/ZA

  • Numbers, numeric equivilants, and ordinals—Numbered streets are mapped to the named equivalents. For example, you can input Calle 5 or Calle cinco and get the same returned candidates. Ordinals are also recognized in input addresses. For example, the following are all recognized in an input address: 5, CINCO, QUINTO, and QUINTA.
  • Directionals—The following directionals are recognized in input addresses: Norte, Oriente, Este, Sur, Oueste, Occidente, Poniente, N, E, S, O, NE, NO, SE, SO, Noreste, Sudeste, Noroeste, and Sudoeste.
  • Address point data— The MEX HERE Points database includes address point data. Address point candidates return an S8 result code.

Single Line Input

Instead of entering each address component in separate fields, you can enter the entire address in the mainAddress input field with the address elements ordered as follows:

[street_info][address_number][postal_code][area]

Where:
  • [street_info] consists of the street name, street type and any pre- or post-directional information (e.g. East, West, etc.). Optional.
  • [address_number] is optional.
  • [postal_code] is the postal code.
  • [area] is the city only, or city plus supporting information, such as state, province, locality.
  • Either the [area] or [postal_code] is required.

For best results, put a comma between the street information and the last address line information.

Custom Options

There are no options specific to Mexico.

Output Fields

The following table lists the address fields returned for a candidate located in Mexico.

Note: The placeName, addressNumber, unitType and unitValue field values are only returned when a geocoding dataset that supports street address interpolation is installed.
Field Name Description
mainAddressLine The street address which may include company name, house number, building names and street names.
addressLastLine The last line of the address.
placeName The building name, place name, Point of Interest (POI), company or firm name associated with the address.
areaName1 The state.
areaName2 The province.
areaName3 The city or town.
areaName4 The locality.
postCode1 The 5-digit postal code.
postCode2 Not used.
country The three-letter ISO 3166-1 Alpha-3 country code. For Mexico, the country code is MEX.
addressNumber The address number.
streetName The street or road name.
unitType The unit type such as APT, STE, etc.
unitValue The unit value/number, such as "3B".
customFields Mexico does not have any custom output fields.