@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
- version required
Output
- output AreaResponse
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
- area_Ids required
Output
- output AreaResponse
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
- siteId required
Output
- output DailyQualityResponse
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
- sites required
Output
- output OverallQualityResponse
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
- report_type required
Output
- output Object
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
- report_type required
Output
- output Object
vversion.sites.get
Get a list of sites
highwaysengland.vversion.sites.get({
"version": ""
}, context)
Input
- input
object
- version required
string
- version required
Output
- output SiteResponse
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
- site_Ids required
Output
- output SiteResponse
SiteTypes_Index
Return list of site types
highwaysengland.SiteTypes_Index({
"version": ""
}, context)
Input
- input
object
- version required
string
- version required
Output
- output SiteTypeResponse
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
- siteType_Id required
Output
- output SiteTypeLayer
Definitions
Area
- Area
object
- Description required
string
- Id
string
- Name required
string
- XLatitude required
string
- XLongitude required
string
- YLatitude required
string
- YLongitude required
string
- Description required
AreaResponse
- AreaResponse
object
- areas
array
- items Area
- row_count
integer
- areas
DailyQualityResponse
- DailyQualityResponse
object
- Qualities
array
- items Qualities
- row_count
integer
- Qualities
Object
- Object
object
OverallQualityResponse
- OverallQualityResponse
object
- data_quality
integer
- end_date
string
- row_count
integer
- sites
string
- start_date
string
- data_quality
Qualities
- Qualities
object
- Date
string
- Quality
integer
- Date
SiteResponse
- SiteResponse
object
- row_count
integer
- sites
array
- items SiteResult
- row_count
SiteResult
- SiteResult
object
- Description
string
- Id
string
- Latitude
number
- Longitude
number
- Name
string
- Status
string
- Description
SiteType
- SiteType
object
- Description
string
- Id
string
- Description
SiteTypeLayer
- SiteTypeLayer
object
- Sites
array
- items Sites
- Sites
SiteTypeResponse
- SiteTypeResponse
object
- row_count
integer
- sitetypes
array
- items SiteType
- row_count
Sites
- Sites
object
- Active
array
- items
boolean
- items
- Description
array
- items
string
- items
- Id
array
- items
string
- items
- Lattitude
array
- items
number
- items
- Longitude
array
- items
number
- items
- SiteId
array
- items
string
- items
- Active