npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/highwaysengland

v4.0.0

Published

DataFire integration for Highways England API

Downloads

3

Readme

@datafire/highwaysengland

Client library for Highways England API

Installation and Usage

npm install --save @datafire/highwaysengland
let highwaysengland = require('@datafire/highwaysengland').create();

.then(data => {
  console.log(data);
});

Description

Actions

vversion.areas.get

Returns list of areas

highwaysengland.vversion.areas.get({
  "version": ""
}, context)

Input

  • input object
    • version required string

Output

vversion.areas.area_Ids.get

Returns details of selected area

highwaysengland.vversion.areas.area_Ids.get({
  "area_Ids": "",
  "version": ""
}, context)

Input

  • input object
    • area_Ids required string
    • version required string

Output

Quality_GetDailyDataQualityForSite

Get Site DailyQuality

highwaysengland.Quality_GetDailyDataQualityForSite({
  "siteId": "",
  "start_date": "",
  "end_date": "",
  "version": ""
}, context)

Input

  • input object
    • siteId required string
    • start_date required string: The start date of the report in the format ddmmyyyy (i.e 31012016)
    • end_date required string: The end date of the report in the format ddmmyyyy (i.e 31012016)
    • version required string

Output

Quality_GetOverallDataQualityForSites

Get Site OverallQuality

highwaysengland.Quality_GetOverallDataQualityForSites({
  "sites": "",
  "start_date": "",
  "end_date": "",
  "version": ""
}, context)

Input

  • input object
    • sites required string: Get site quality by site id delimited by ,
    • start_date required string: The start date of the report in the format ddmmyyyy (i.e 31012016)
    • end_date required string: The end date of the report in the format ddmmyyyy (i.e 31012016)
    • version required string

Output

vversion.reports.report_type.get

Get's the report.

highwaysengland.vversion.reports.report_type.get({
  "report_type": "",
  "sites": "",
  "start_date": "",
  "end_date": "",
  "page": 0,
  "page_size": 0,
  "version": ""
}, context)

Input

  • input object
    • report_type required string: Report Type Id (i.e Daily, Monthly, Annual)
    • sites required string: Comma separated list of site Ids.
    • start_date required string: The start date of the report in the format ddmmyyyy (i.e 31012016)
    • end_date required string: The end date of the report in the format ddmmyyyy (i.e 31012016)
    • page required integer: The page offset to return.
    • page_size required integer: The number of rows to return.
    • reportSubTypeId integer
    • version required string

Output

vversion.reports.start_date.to.end_date.report_type.get

Get's the report.

highwaysengland.vversion.reports.start_date.to.end_date.report_type.get({
  "report_type": "",
  "sites": "",
  "start_date": "",
  "end_date": "",
  "page": 0,
  "page_size": 0,
  "version": ""
}, context)

Input

  • input object
    • report_type required string: Report Type Id (i.e Daily, Monthly, Annual)
    • sites required string: Comma separated list of site Ids.
    • start_date required string: The start date of the report in the format ddmmyyyy (i.e 31012016)
    • end_date required string: The end date of the report in the format ddmmyyyy (i.e 31012016)
    • page required integer: The page offset to return.
    • page_size required integer: The number of rows to return.
    • reportSubTypeId integer
    • version required string

Output

vversion.sites.get

Get a list of sites

highwaysengland.vversion.sites.get({
  "version": ""
}, context)

Input

  • input object
    • version required string

Output

vversion.sites.site_Ids.get

Get selected sites

highwaysengland.vversion.sites.site_Ids.get({
  "site_Ids": "",
  "version": ""
}, context)

Input

  • input object
    • site_Ids required string: site id
    • version required string

Output

SiteTypes_Index

Return list of site types

highwaysengland.SiteTypes_Index({
  "version": ""
}, context)

Input

  • input object
    • version required string

Output

SiteTypes_GetSitesForPublicFacingAPI

Returns the layer metadata for the LayerId specified.

highwaysengland.SiteTypes_GetSitesForPublicFacingAPI({
  "siteType_Id": 0,
  "version": ""
}, context)

Input

  • input object
    • siteType_Id required integer: 1 = MIDAS, 2 = TAME, 3 = TMU, 4 = TRADS Legacy
    • version required string

Output

Definitions

Area

  • Area object
    • Description required string
    • Id string
    • Name required string
    • XLatitude required string
    • XLongitude required string
    • YLatitude required string
    • YLongitude required string

AreaResponse

  • AreaResponse object
    • areas array
    • row_count integer

DailyQualityResponse

  • DailyQualityResponse object
    • Qualities array
    • row_count integer

Object

  • Object object

OverallQualityResponse

  • OverallQualityResponse object
    • data_quality integer
    • end_date string
    • row_count integer
    • sites string
    • start_date string

Qualities

  • Qualities object
    • Date string
    • Quality integer

SiteResponse

  • SiteResponse object

SiteResult

  • SiteResult object
    • Description string
    • Id string
    • Latitude number
    • Longitude number
    • Name string
    • Status string

SiteType

  • SiteType object
    • Description string
    • Id string

SiteTypeLayer

  • SiteTypeLayer object

SiteTypeResponse

  • SiteTypeResponse object
    • row_count integer
    • sitetypes array

Sites

  • Sites object
    • Active array
      • items boolean
    • Description array
      • items string
    • Id array
      • items string
    • Lattitude array
      • items number
    • Longitude array
      • items number
    • SiteId array
      • items string