Sample code for rooftop geocoding
This page provides sample code to help you set up Postcoder rooftop geocoding.
You'll need an API key to make these examples work. Not got an API key? Sign up for a free trial.
You'll also need to enable AddressBase and/or Eircode on your API key using the Features page.
You'll also need to enable AddressBase and/or Eircode on your API key using the Features page.
Create an address finder and rooftop geocoder with JavaScript
This JavaScript example is designed to help you add Postcoder rooftop geocoding to your website, without the need to write your own code from scratch. It uses the pafaddressbase and address endpoints to look up addresses and their coordinates in the UK and Ireland. The UK address lookups use PAF and AddressBase data, and the Irish address lookups use Eircode data.
Implement rooftop geocoding in other languages
These examples show how to make a request to the pafaddressbase endpoint to look up a UK address and its coordinates.