Using Code Examples

Code examples for the OS NGD APIs

The code examples provided on the 'OS NGD API – Features' page and 'OS NGD API – Tiles' page will provide you with an introduction to OS NGD API – Features and OS NGD API – Tiles, respectively. They are intended as simple guides that will quickly get you started using the two OS NGD APIs.

The content will:

  • Help you to discover the various aspects of the services.

  • Demonstrate how you can spatially refine and / or filter by attributes to create customised data selections.

Also included, are a series of interactive code examples which will show you how to implement the APIs in common web mapping libraries, such as Leaflet, MapLibre GL JS, and OpenLayers. You can copy and paste the code to start building your own innovative projects.

Last updated

Was this helpful?