What is geocoding? Use geocoding to display postcodes on a map

by Niharika Sisodia
on Nov 22, 2018 9:26:41 AM

Geocoding definition

Geocoding is the process of converting addresses (postcodes or street names) into coordinates (latitude and longitude). These coordinates can then be displayed on a map.

Geocoding is most commonly used on websites that need to allow visitors to interact with a map. The users might be searching for a point of interest, or for a particular route to a specific destination. In any case, they will need to enter a starting location into a search bar. This can be an exact postcode or location.

How does geocoding work?

The example below uses the TravelTime API to show how geocoding works. The geocoding service can be integrated into any service. Please check the documentation here. Geocoding with this API is free - get an API key here.

The user enters a location into the search bar. The example below shows a starting location of Islington, London.


The geocoder then sends a geocoding request to convert the place name ‘Islington, London, England, United Kingdom’ into the corresponding geographic coordinates. The geocoder returns the response as a latitude and longitude, which can be displayed on a map.


The user could then enter a destination. The example below shows the postcode: N1 2UN.


Again the geocoder converts the postcode into coordinates. These coordinates are displayed on the map.


The journey time can then be calculated between the two places and the route displayed for the user. It is also possible to reverse geocode. Reverse geocoding is translating coordinates into an address.


To start using the free geocoder get a TravelTime API key.


TravelTime case study: healthcare development analysis

The Megahospital challenge is a tool created using the TravelTime API by Border City Data. See how the app was built for healthcare development analysis.

Niharika Sisodia Apr 8, 2019 9:08:00 AM

Google Distance Matrix API vs. the TravelTime Search API

Google Distance Matrix and TravelTime Search both calculate travel times and distances from one to many points of interest. Compare the API features and pricing.

Niharika Sisodia Jan 28, 2019 4:04:45 PM

10 brick and mortar store locator pages for inspiration

Get inspired by brick and mortar store locator pages. View store locator pages from top global retail brands. Attract customers to your brick and mortar store by creating an effective store locator page design.

Niharika Sisodia Dec 20, 2018 10:21:18 AM

How to convert visitors into customers using map view

Improve your map UI. Perfect your website map view to streamline the user journey. Convert visitors to your site into customers for your product or service.

Niharika Sisodia Dec 18, 2018 3:30:14 PM

How far can I travel in 15 minutes or 1 hour? This map shows you.

How far can I travel within a time limit? Make a map to show you where you can reach within a certain travel time. Change the mode of transport and time of day. Add up to three starting locations and filter the intersection between them.

Niharika Sisodia Nov 26, 2018 9:17:41 AM