Routing service NodeJS
Server-side routing service with NodeJS implementation
Two coordinates go in, and the first route’s properties print from a plain Node process.
calculateRoutetakes the stops as alocationsarray and returns routes as GeoJSON features that hold geometry and travel metadata in one object.- Each feature’s
propertiesholds the route’s own summary, so nothing else is called to describe the line that came back. - The same call runs unchanged in the browser, so a server and its client agree on one route shape.
Related examples
Along route search service NodeJS
Find fast chargers within a one-minute detour of a route, from a Node.js process
Getting Started
Search and Geocoding
Routing
Electric Vehicles
Node.js
Reachable range service NodeJS
Areas reachable from a geocoded address within a drive time and a distance, summarised by a Node.js process
Getting Started
Routing
Node.js
Add Stops to Route
Find stops along a route within a one-minute detour and insert them all at optimal positions in a single call.
Getting Started
Routing
Search and Geocoding
Electric Vehicles
Utilities
Web
Along route search
Find the beaches and viewpoints within a one-minute detour of a coastal drive
Getting Started
Routing
Search and Geocoding
Web