Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
/ IQ-API-Samples Public archive

The repo collects sample code demonstrating how to integrate with the IQ INRIX APIs that could be shared with IQ Trial/Licensed users

Notifications You must be signed in to change notification settings

INRIX/IQ-API-Samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

INRIX IQ API samples

Overview

The repository features code samples demonstrating how to integrate with INRIX IQ APIs. The sample project uses node express framework with vanila javascript to showcase how to integrate different map providers e.g. OSM /Open Street Map/, Mapbox, Google and plot INRIX IQ APIs data on top. To run the app, you need to register with INRIX IQ Developer Console and get your API credentials.

Get an API credentials

Go to "INRIX Developer Console" here and create your credentials from the key-management section.
Pull up the appId && hashToken for later use

image

Review the available trial INRIX IQ APIs

While you are in the INRIX Developer Console you can review all available tiral APIs which can be explored with provisioned credentials.
Note that you can explore them directly in your borowser via the API Explorer bilt-in feature inside the IQ Developer Console

image

Set up your environment

Clone the repo

git clone https://github.com/INRIX/iq-api-samples.git

Use your appId and hashToken to conigure the api layer

config.appId = <your appId>
config.hashToken = <your hashToken>

Run the app

cd iq-api-samples/api
npm install && npm start

Open the app URL: http://localhost:3000 in your browser

image

INRIX Samples

INRIX Tiles

The INRIX Tile Service returns images that contain traffic graphics. They are useful for any application where maps with traffic are displayed, such as mobile and web apps. The INRIX Tile APIs provide convenient images to overlay on top of your own base map solution

Tiles on Open Street Map

The current sample shows how to consume Tile API and visualize its data on OSM (Open Street Map) via Leaflet.js library.

Tiles on Mapbox Map

This sample shows how to consume Tile API and visualize its data on Mapbox via Leaflet.js library.

Tiles on Google Map

The sample shows how to consume Tile API and visualize its data on Google Map via Leaflet.js library.

Drive Time Polygons on Open Street Map

The INRIX Drive Time Polygons provides information on the time is takes to travel to or from a particular location based on typical traffic conditions. The main usage scenarios for drive time polygons are a potential home buyer can find houses where the typical commute time is less than a certain time to or from their office in the morning or evening. For example, I want to find properties within 15 minutes of my work location arriving at work at 8:00 am.

Scenario

The current sample shows how to consume Drive Time Polygons API and visualize its data on OSM via Leaflet.js library.

Parking Lots on Open Street Map

The INRIX Parking Service is part of the company’s Connected Driver Services suite, whose aim is to give users relevant information to help them save time, reduce frustration, and give them the critical insights to make better decisions while on the road. The parking API for on-street parking. The parking API for off-street parking, showing parking lots and parking structures. The v3 lots queries are based on a circle defined by a point (lat, lon) and a radius (meters).

Scenario

The sample shows how to consume Off-street parking API (lots) and visualize its data on OSM via Leaflet.js library.

Parking Blocks on Google Map

The INRIX Parking Service is part of the company’s Connected Driver Services suite, whose aim is to give users relevant information to help them save time, reduce frustration, and give them the critical insights to make better decisions while on the road. The parking API for on-street parking. The “blocks” api returns data for a number of city blocks around a position. A block represents a road from one intersection to the next.

Scenario

This sample shows how to consume blocks API and visualize its data on Google Map.

Incidents on Google Map

INRIX Safety Alerts return information about many different type of incidents that happen on roadways that can impact people and businesses in different ways. INRIX classifies the incident types for better filtering,identifies where it is, when it is, and details such as the severity of the impact.

Scenario

The current sample shows incidents. When an incident is selected, details about it are dislayed.

Routing on Open Street Map

The INRIX Routing Service provides integrated traffic-influenced routing services, such as fastest route based on traffic, lists of directional maneuvers and faster alternative routes based on traffic conditions. This information is based on current as well as predictive traffic.

Scenario

The sample shows a way to consume INRIX Routing API. By providing start and end location, routes are being calculated additional details about each route are dislayed.

Traffic Cameras on Google Map

INRIX Traffic Cameras return information about many different type of traffic cameras that happen on roadways that can impact people and businesses in different ways.

Scenario

The current sample shows traffic cameras. When a camera is selected, details about it are displayed.

About

The repo collects sample code demonstrating how to integrate with the IQ INRIX APIs that could be shared with IQ Trial/Licensed users

Topics

Resources

Stars

Watchers

Forks