Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🆕Comparison of Feature APIs

Comparing the OS Features API and OS NGD API – Features to aid in migration.

Overview

The purpose of this page is to compare the OS Features API and OS NGD API – Features to help inform your decision about which API is best suited to provide you with access to authoritative Ordnance Survey feature data. Both OS Features API and OS NGD API – Features enable organisations to retrieve and analyse geographic features such as buildings, transport networks and land use. While the core use case for both APIs remains similar, they are built on different data models and technology standards, reflecting the evolution from traditional OS products towards the OS National Geographic Database (OS NGD).

Understanding these differences can help you identify the potential benefits of the OS NGD API – features and help you to assess the migration effort required to upgrade.

OS Features API provides access to MasterMap generation products. OS NGD API – Features provides access directly to the OS National Geographic Database (NGD), Ordnance Survey's modern geospatial platform.

Key benefits

The OS NGD API – Features offers several key advantages over the OS Features API. These are compared and summarised below.

Built for modern development

OS Features API is based on the OGC Web Feature Service (WFS), a mature GIS standard.

OS NGD API – Features uses the newer OGC API – Features standard, providing:

  • RESTful APIs

  • Native GeoJSON

  • Simpler query syntax

This makes it easier to integrate with web applications, cloud services and automated workflows.

A different way of organising data

OS Features API is organised around individual products such as MasterMap Topography Layer and MasterMap Highways.

OS NGD API – Features uses a thematic structure based on:

  • Themes

  • Collections

  • Feature types

This makes data easier to discover, navigate and combine across domains.

Richer querying

Both APIs support spatial and attribute filtering.

OS NGD API – Features also supports capabilities such as:

  • Temporal filtering

  • CQL queries

  • Richer, more consistent attribution

This makes it particularly well suited to analytics, automation and decision-support applications.

Migration requirements

For most organisations, migration will require:

  • Replacing WFS requests with REST API calls

  • Updating queries and filters

  • Moving from product-based datasets to NGD themes and collections

The benefits of migrating to OS NGD API – Features is access to a more modern standard, a richer data model and a platform that aligns with the future direction of OS data services. This provides an advantage to teams looking to move to a more modern architecture and those looking to unlock richer analytics from OS data.

From a developer perspective, moving from OS Features API to OS NGD API – Features is a shift from a traditional WFS operation-based model to a more modern RESTful, resource-based model.

Implemenation comparision

OS Features API is exposed through an OGC Web Feature Service, using operations such as GetCapabilities, DescribeFeatureType and GetFeature. OS NGD API – Features is built around OGC API – Features, with endpoints for landing page, conformance, collections, schemas, queryables, features and individual feature resources.


Request structure changes

With OS Features API, developers call a single WFS endpoint and define the action through query parameters:

With OS NGD API – Features, developers request features from a specific OS NGD collection:

So the migration is not simply changing a base URL. Developers need to move from a WFS request pattern to RESTful requests made against collection-specific endpoints.


Feature type names are replaced by OS NGD collection IDs

In OS Features API, data is requested using WFS feature type names such as:

  • Topography_TopographicArea

  • Highways_RoadLink

  • Greenspace_GreenspaceArea

In OS NGD API – Features, data is requested using OS NGD collection IDs such as:

  • bld-fts-buildingpart-1

  • trn-ntwk-roadlink-1

  • lnd-fts-land-1

A key migration task is therefore mapping existing product-based WFS feature types to the appropriate OS NGD collections. A suite of migration guides are available to help with this.


Schema and query discovery is more explicit

In OS Features API, developers use DescribeFeatureType to retrieve an XML schema for a feature type.

In OS NGD API – Features, schema and query information are exposed through separate REST endpoints:

This makes it easier for applications to discover available attributes and understand which fields can be queried, particularly when building dynamic search tools, validation logic or automated workflows.


Filtering changes from XML filters to CQL

OS Features API supports WFS-style filtering, including bounding boxes and OGC XML filters.

OS NGD API – Features supports CQL text filters, including comparison, logical, array and spatial operators such as INTERSECTS.

For developers, this is a meaningful change. Existing XML filter logic will usually need to be rewritten, but the resulting CQL filters are typically easier to read and maintain.


Output handling is more web-friendly

OS Features API defaults to XML/GML-style responses, although GeoJSON can be requested using outputFormat=GEOJSON.

OS NGD API – Features returns feature collections as application/geo+json, which aligns more naturally with modern web mapping libraries, JavaScript applications, cloud services and Python data workflows.

This reduces the need for transformation in many modern application architectures.


Paging and CRS parameters change

OS Features API uses WFS-style parameters such as:

  • count

  • maxFeatures

  • startIndex

  • srsName

OS NGD API – Features uses more REST-style and explicit parameters such as:

  • limit

  • offset

  • bbox-crs

  • crs

  • filter-crs

This means developers should review paging logic and coordinate reference system assumptions during migration.


Individual feature access is simpler

In OS Features API, retrieving a specific feature is usually handled through a GetFeature request with a suitable filter or identifier-based query.

In OS NGD API – Features, an individual feature can be requested directly using a collection ID and feature ID:

This is a cleaner pattern for applications that need to store, retrieve or link directly to individual features.


Historical data access

Both APIs support historical data access, but you interact with them in different ways.

With OS Features API, historical data is accessed through a dedicated archive endpoint. You specify the archive year as part of the URL, then continue to use the normal WFS request pattern, including service=WFS, request=GetFeature, version, typeNames, bbox, filter, count and srsName. The archive contains annual snapshots of supported products such as OS MasterMap Topography Layer, OS MasterMap Highways Network, OS MasterMap Integrated Transport Network and OS Open UPRN.

For example:

This means you can treat each year as a separate fixed dataset. It works well where an application needs to compare specific annual snapshots, such as 2017 versus 2020, but it does require the year to be built into the endpoint being called.

With OS NGD API – Features, historical access is handled through the standard collection item endpoint using temporal query parameters. Instead of changing the endpoint to include a year, you request features from an NGD collection and use datetime to specify a point in time or time interval. The NGD API supports time-based queries as part of its feature request model.

For example:

or for a time interval:

The key migration difference is that OS Features API archive access is endpoint-based, while OS NGD API – Features historical access is query-parameter-based. Existing applications that construct archive URLs such as /archive/{year} will need to be redesigned to use NGD collection IDs and temporal filters instead.

You should also note that the historical coverage is different. OS Features API provides access to older product archive annual snapshots, while OS NGD API – Features cannot return data from before the launch of the NGD in 2022 but does enable any time/date to be specified, offering highly granular filtering.


Authentication is broadly consistent

Both APIs support API key and OAuth 2.0 client credentials authentication. The OS Features API technical specification lists api-key, api-key-header and oauth2 as supported authentication methods, and OS NGD API – Features supports the same authentication options.

This means authentication is unlikely to be the most complex part of migration. In many cases, existing credential management approaches can be retained, subject to the user having access to the relevant API.

Example using an API key:

Example using OAuth 2.0:

The main migration effort is therefore typically focused on request patterns, filtering logic and data structures rather than authentication. Existing integrations that use API keys or OAuth 2.0 with OS Features API can generally adopt the same approach when migrating to OS NGD API – Features.

Looking ahead

OS Features API will continue to be fully supported until its retirement in summer 2030. Existing solutions built around WFS workflows and OS MasterMap generation products can continue to use the API until then, although migration is encouraged to provide a more modern standard, alignment with the wider OS NGD ecosystem and a richer data model.

Most new projects should consider adopting OS NGD API – Features to provide future longevity and improved data access.

More details on the End of Life migration timeline are available on the product roadmap page of the OS website.

The OS API Documentation site has further information that you may find useful. Some particularly relevant sections that may aid you with migration are:

Last updated

Was this helpful?