Giter Club home page Giter Club logo

os-maps-api's Introduction

OS Maps API Demos

This repo contains working examples of how to use the OS Maps API, a RESTful API based on the OS datasets. The API offers access to five styles of map: Leisure, Outdoor, Road, Light and Night. Scale varies from an overview of Great Britain and OS products such as [MiniScale®] (https://www.ordnancesurvey.co.uk/business-and-government/products/miniscale.html), OS VectorMap® Local and OS VectorMap® District, right down to OS MasterMap® Topography.

In the outdoor stack, buildings in OS MasterMap® Topography are 2.5D. The API supports EPSG:27700 and EPSG:3857 in OGC KVP WMTS and RESTful ZXY. PNG format is supported. There are JavaScript examples using Leaflet and Openlayers.

Register for an API key of OS Maps API here.

Full documentation for the OS Maps API can be found here.

Using the Demos

The examples use plain HTML, CSS and JavaScript. You can run them by opening the index.html in each folder, or you can serve the examples using a web server, for example live-server.

To get the examples to work with your API key you should create a file called OS_API_KEY.js in this directory, with contents as such:

var OS_API_KEY = "INSERT_YOUR_API_KEY_HERE";

The API key should be obtained from the OS developer site. Alternatively you can use your API in place as a literal string where you see OS_API_KEY in the demos.

Data Sources

Strategi

Strategi® is digital vector data. It’s a representation of Ordnance Survey’s 1:250 000 scale graphic products. As such, it’s ideal for apps that need an overview of generalised geographic information such as planning or environmental analysis.

OS VectorMap District

OS VectorMap® District is a mapping dataset that provides contextual mapping, with a recommended viewing scale range of 1:15 000 to 1:30 000. It provides the level of detail you’d expect to find in backdrop mapping, interactive web mapping and any app that’s geared to business locations and routing.

OS VectorMap Local

OS VectorMap® Local is a series of 5km by 5km tiles of simple vector GML data, which covers the whole of Great Britain. We designed it to help create graphical mapping. It can be used as mapping in its own right or as a contextual reference for customers’ overlay information. Apps and services using OS VectorMap Local are likely to include banking and insurance, land and property, consumer website services, navigation products, cartographic representation and urban extents.

OS MasterMap Topography Layer

OS MasterMap® is the most detailed, current and comprehensive map dataset of Great Britain. The Topography Layer contains landscape features, such as buildings, fields, fences, land, water and roads, as well as administrative boundaries. The Topography Layer contains over 425 million features.

License

These demos are released under the Apache 2.0 License

os-maps-api's People

Contributors

gussmith21 avatar jameslmilner avatar michaelgordon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.