Git Product home page Git Product logo

ordnancesurvey / osdatahub-js Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 3.82 MB

A JavaScript package from Ordnance Survey, designed to make data from the OS Data Hub APIs readily accessible to developers.

Home Page: https://www.npmjs.com/package/osdatahub

License: Other

JavaScript 0.67% TypeScript 99.18% HTML 0.15%
api-wrapper geojson geospatial javascript nodejs ordnancesurvey osnames osplaces

osdatahub-js's Issues

NGD Feature Collection Items results is completely random?

I've tested this endpoint a bunch of different ways:

https://api.os.uk/features/ngd/ofa/v1/collections/${collectionId}/items?key=${apiKey}&bbox=${extent.join(',')}&bbox-crs=http://www.opengis.net/def/crs/EPSG/0/3857

The results are completely random? Attaching image from OS' code sandbox:

image

Not understanding why only some buildings are selected, it should be all within the bounding box, limited to 100, not sporadic.

Spelling Errors in README.md

There are multiple instances of 'integrer' which should be 'integer' within the documentation.
Cases generally occur in the API examples section.

API Key Compromised

Please advise on the use of the API key. Regardless of the application examples I find, the key is always embedded directly in the code in plain text. This is absolutely insecure, especially considering the fact that there is no way to restrict the key's actions by domain name.

How can the key be safely used in open systems? Is there a way to limit the key by domain name?

Outdated Screenshot in README.md

The media/browser_examples_screenshot.jpg references the old basemap tiles prior to the addition of the OS Maps API.
Let me know if you'd like me to update this ๐Ÿ™‚

Feature collection filtering by properties with enumeration missing

Good afternoon

  1. Have deployed OS NGD API โ€“ Features Retrieve items from a feature collection, I noticed that https://labs.os.uk/public/osngd/os-ngd-api-features/examples/queryables.html has the filters built into query, how do I update my app to include these filters?
    image

  2. Where in the code do I change the location of bbox? (greyed out)
    image

Thanks for making code open source really helpful in development of building-height.co.uk
Building-Height is a system that can determine the attributes of historical buildings in England. The building part can be defined just by uploading a photo.
If you would like to try the app here is a link to an example image in Farnham, Surrey. (currently only have a couple thousand OS polygons footprints in our database for testing.

Fix 'total returned features' logged value

For queries that complete fully (total number of features is under the feature return limit), the total number of returned features appears to be incorrect (lower than expected). This could be due to either:

  1. The incorrect variable being passed as the final feature count,
  2. Failure to run the log command before the final page of results has been added to the temporary accumulated response object.

Outdated Tests: NGD FeatureType Spec Change

The test Collections Endpoint Passes w/ collectionId within ngd/ngd.test.js is failing due to updates to the NGD's schema. Whilst this has minimal impact on the user, the test is written to expect the old schema response (bld-fts-buildingline); this response will now be bld-fts-buildingline-1.

Change Basemap for JS example to Ordnance Survey

Currently, the osdatahub-js browser example uses OSM as the basemap. For consistency, change the basemap to the Ordnance Survey Maps API.

Be sure to use a locked down api key since it will be public

Enable Browser Usage

Provide a version of osdatahub for use in the web browser:

  1. Minify the codebase
  2. Use browser-native fetch capabilities, instead of node-fetch
  3. Distribute via CDN (?)

Code snippets in documentation incorrect

The following documentation corrections are required:

  1. (Installation) First import statement uses curly brackets, there are not required.
  2. (Getting Started) Example references a BBox but only provides two array components (a point feature)
  3. (Contribute) GitHub Issues href currently links to osdatahub-py

Add OS National Geographic Database Features API Support

Add functionality to integrate the OS NGD Features API:

  1. Add support for bbox spatial queries
  2. Provide capabilities to optionally pass a CQL filter to the API
  3. Provide efficient paging capability (via the links >> next component of the API response body) to the handler

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.