Import GeoJSON


GeoJSON Import

When GPS is lost, such as in a subway, points may jump to a different location. Turbo GPX can exclude jumps using the Track Gap feature. Another method is to fill in missing points. You can add points one by one using the edit feature, or you can fill them in by importing a GeoJSON file.

Supported Files and Limitations

Turbo GPX imports GeoJSON files created or distributed externally.

It is intended for line data, such as railways, roads, and sea routes.

File Format

Supported Geometry

The following data is not imported:

GeoJSON is JSON that describes points, lines, and areas (locations and shapes) in a machine-readable format.

File Size

Data Correction and Conversion

During import, the following processing may be applied:

These operations are applied automatically according to the settings.

When Import Fails

GeoJSON Import stops without loading the file if the content does not match the specification.

Typical cases:

In these cases, an error message is displayed.

Options

Settings are available on the [Option] tab of the map window.

Item Description
Distance Allowed snap distance from point to line
Trim Cut out only the required section
Set Start/End Pins Place pins at the start and end
Set Name to Destination for the name

For example, when importing a railway route, station points and railway lines may not match exactly. Specify the acceptable range using Distance. When Trim is enabled and start / end stations are specified, sections outside the start-to-end range are excluded. When Set Start/End Pins is enabled, pins are placed at the start and end locations.

Notes

GeoJSON and GPX Comparison

Viewpoint GeoJSON GPX
Purpose General geographic data (points, lines, areas) GPS logs, mainly tracks
Data representation JSON (FeatureCollection / Feature) XML (gpx / trk / trkpt)
Shape Point / LineString / Polygon, etc. Track / Route / Waypoint (mainly point sequences)
Attributes / properties Can freely store values in properties name / desc, etc. plus extensions
Time Optional (not required) Usually stored as time in trkpt
Elevation Optional (stored as an attribute) ele is defined as a standard element
Main usage GIS, map drawing, roads, railways, boundaries Running, hiking, and cycling logs

Creating GeoJSON

Access the overpass turbo site (https://overpass-turbo.eu/).

Enter the following query and click [Run].

[out:json][timeout:60];

area["name"="Roma"]["boundary"="administrative"]->.a;

(
  node(area.a)["railway"="station"]["name"="Ottaviano"];
  node(area.a)["railway"="station"]["name"="Manzoni"];

)->.stations;

rel(area.a)["route"="subway"]["ref"="A"]->.r;
way(r.r)->.tracks;

(.stations; .tracks;);
out geom;

Select GeoJSON from [Export].

inserted by FC2 system