New: Screen RecorderRecord, trim, and download your screen for freeTry it now →

Back to tools

GeoJSON LineString Example & Generator

maps

Create valid GeoJSON LineStrings. Draw paths and routes on the map.

Loading Map...

What is a GeoJSON LineString?

A LineString represents a line connecting two or more positions. It is commonly used for routes, paths, and boundaries.

Syntax

{
  "type": "Feature",
  "geometry": {
    "type": "LineString",
    "coordinates": [
        [lng1, lat1],
        [lng2, lat2]
    ]
  },
  "properties": {}
}

How to use it

  1. Click on the map to start the line.
  2. Continue clicking to add more points/segments.
  3. Click any point to add a Label or Info.
  4. Drag points to adjust the path if needed.
  5. Copy the generated LineString JSON.

Common Use Cases

Mapping delivery routes
Hiking trails and paths
Road network visualization
Flight path tracking

Freqently Asked Questions

How do I finish the line?
The line updates automatically as you add points. You can just copy the code whenever.
Can I edit the points?
Yes, you can drag existing points to adjust the route.

Why use this tool?

  • Simple click-to-draw interface
  • Instant coordinate array generation
  • Undo/Redo support
  • Works with all map libraries

How was this tool?

Your feedback helps us make it better.

Have further opinions? Email me at hello@everythingbagel.app