How Geocoder and Search 7 Determines Location of Large-Area Postal Codes

Symptoms
--------

You searched or geocoded a postal code using Geocoder & Search and observed one or more of the following:

The returned latitude/longitude is not located at the geographic center of the postal code area.
The returned position appears to belong to a city, district, or populated area within the postal code.
Different large-area postal codes return locations that do not appear to follow a simple centroid calculation.
The postal code covers a large region, but the result is associated with a specific settlement or street location.
You expected the geometric center of the postal code boundary, but a different position was returned.

Answer
------

For large-area postal codes, Geocoder & Search does not always return the geometric center of the postal code polygon. Instead, the service uses a hierarchy of location sources to provide the most representative and useful position for the postal code.

The returned location is selected using the following fallback logic:

1. City POI of the largest city or district within the postal code
- The preferred location is the Point of Interest (POI) representing the largest city or district associated with the postal code.
- This provides a location that is typically more meaningful for search, display, and navigation use cases than a simple geometric center.
2. HERE Postal Code Boundaries content
- If a suitable city or district POI is not available, the service uses position information derived from the HERE Postal Code Boundaries layer.
3. Street section closest to the postal code geometric center
-f neither a representative city POI nor postal boundary position is available, the service selects the display position of the street section closest to the geometric center of the postal code area.

Root Cause
----------

Large postal codes can span extensive geographic regions containing multiple settlements, rural areas, or administrative districts. A geometric center may fall in an unpopulated or less useful location. To improve the usability of search results, Geocoder & Search prioritizes representative populated places whenever possible.

Impact
------

The returned coordinates may differ from:

The visual center of a postal code polygon.
The centroid calculated by a GIS tool.
The center point expected by users viewing the postal code boundary on a map.

This behavior is intentional and helps provide more practical search results.

Product Scope
-------------

HERE Geocoder & Search API (GS7)
Postal code geocoding and search workflows

Keywords
--------

Geocoder & Search, GS7, postal code geocoding, postcode search, postal code centroid, postal code boundaries, geographic center, representative location, city POI, district POI, search result position, latitude longitude, postal area, geocoding behavior, HERE location services


Did this page help you?