mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
feat: add a traffic flow tool
Add get_traffic_flow over the traffic source's TomTom flow tiles. It reports average speed as a share of free-flow speed, congested and closed road length, and a breakdown by road category, stepping down a zoom level when an area needs more tiles than the source reads at once.
This commit is contained in:
1 parent
e6cbcc31ad
commit
9d12da0a79
7 files changed
+241
-3
No files matched your search
@@ -14,6 +14,7 @@ import { createLaunchSource } from '../../src/layers/launches/source.js';
|
||||
import { createWfigsPerimeterSource } from '../../src/layers/perimeters/source.js';
|
||||
import { createRadioSource } from '../../src/layers/radio/source.js';
|
||||
import { createSatelliteSource } from '../../src/layers/satellites/source.js';
|
||||
import { createTrafficSource } from '../../src/layers/traffic/source.js';
|
||||
import { createTransitSource } from '../../src/layers/transit/source.js';
|
||||
import { createApplicationRequestServices } from '../../src/services/requests.js';
|
||||
import {
|
||||
@@ -70,6 +71,7 @@ export function createLocalToolServices(options = {}) {
|
||||
getStations: createBikeshareSource({ fetchImpl }).getStations,
|
||||
},
|
||||
transit: createTransitSource({ fetchImpl }),
|
||||
traffic: createTrafficSource({ fetchImpl, tileFetchImpl: fetchImpl }),
|
||||
weather: requests.weather,
|
||||
regional: requests.regional,
|
||||
terrain: requests.terrain,
|
||||
|
||||
Reference in new issue
Block a user