Comments (1)
Hi @buildvoc10. Thanks for the feedback (and glad to hear that the resources have been helpful).
You will probably be interested in the /queryables
endpoint for the service. This defines which properties can be filtered for the requested feature collection (using the filter
query parameter). The examples demonstrate how to filter by the properties with enumerated values (however you can also filter by text strings or integers). You might find that https://labs.os.uk/public/osngd/tutorials/filtering-and-cql is a useful resource to better help understand filtering using CQL.
The bounding box (BBOX) can be defined using the bbox
query parameter. For the purpose of the examples we have disabled this option to use a predefined/restricted extent; but in practice the value would be important in limiting your responses to the area of interest (otherwise features will be returned across the whole of GB).
Using theosdatahub-js
wrapper you can implement the filter
and bbox
query parameters as follows: osdatahub.ngd.features("INSERT_API_KEY_HERE", "bld-fts-buildingpart", { bbox: [-3.545022,50.727083,-3.538596,50.728095], filter: "description = 'Building'", limit: 1000 })
from osdatahub-js.
Related Issues (13)
- Code snippets in documentation incorrect
- Add OS National Geographic Database Features API Support HOT 1
- Enable Browser Usage HOT 1
- Fix 'total returned features' logged value HOT 1
- Docs should auto-generate in GH Actions
- Change Basemap for JS example to Ordnance Survey
- Outdated Screenshot in README.md
- Outdated Tests: NGD FeatureType Spec Change
- Spelling Errors in README.md
- OS Contact Email - Review Details
- API Key Compromised
- NGD Feature Collection Items results is completely random? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osdatahub-js.