Git Product home page Git Product logo

Comments (1)

tmnnrs avatar tmnnrs commented on September 26, 2024

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)

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.