Route Analyzer
Find the countries, divisions and boundaries a route passes through
Upload a GeoJSON file or paste a LineString to see the countries, divisions and boundaries the route intersects, in travel order. The route is previewed on a map.
Route Analysis
Countries
| # | Country | Code | From km | To km | Span km |
|---|
See which countries and regions a route crosses
The route analyzer takes a path described as a GeoJSON
LineString and works out which countries and administrative
boundaries, such as administrative divisions and postal areas, it
intersects. Results are grouped by boundary type and level, with each
table ordered by where the route first meets its boundaries.
Input format and a worked example
The route needs at least two positions, each written as
[longitude, latitude]. For example, a straight line from
Copenhagen to Hamburg crosses Denmark and Germany. A Feature containing a
LineString, or a FeatureCollection with exactly one such Feature, is also accepted.
{
"type": "LineString",
"coordinates": [[12.5683, 55.6761], [9.9937, 53.5511]]
}
For that Copenhagen-to-Hamburg route, the country results are listed in travel order, for example:
Countries
1 Denmark DK
2 Germany DE
Boundary tables
Administrative divisions and other intersected boundaries,
with route start, end and span distances in kilometres.
Distances and boundary rows depend on the route geometry and the available boundary data.
How to analyze a route
- Upload a GeoJSON file or paste a LineString into the text area.
- Select Analyze. The tool returns countries and boundary tables by type and level.
- Read the tables, or follow the route on the map.
Reading the distances
Positions are measured in kilometres from the start of the route. Boundary span is the distance from its first to last intersection. If the route leaves and re-enters a boundary, that span can include distance outside it. A boundary that is only touched can have a zero-length span.
Business applications
A transport or logistics workflow can use route analysis to identify the countries and administrative divisions crossed by an existing route, for example for geographic reporting. The tool analyzes a supplied LineString; it does not calculate an optimal route or provide dispatch instructions.
Related tools
Find tools for preparing GeoJSON routes in the GeoJSON and GIS data collection.
Frequently asked questions
What does the route analyzer do?
It takes a route drawn as a GeoJSON LineString and returns the countries and divisions and boundaries it intersects, in the order the route meets them.
Which input is supported?
A GeoJSON LineString with at least two [longitude, latitude] positions. A Feature containing a LineString, or a FeatureCollection with exactly one such Feature, is also accepted.
How are the distances measured?
Positions are kilometres from the start of the route. For a boundary, the first-to-last span can include sections outside it if the route re-enters.
Can I analyze routes in my own application?
Yes. Route analysis is available through our API.
Use this capability in your application
Analyze routes in your own application: the route analysis endpoint of our geospatial API returns the countries, divisions and boundaries a LineString intersects.