Back to tools
GeoJSON LineString Example & Generator
mapsCreate 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
- Click on the map to start the line.
- Continue clicking to add more points/segments.
- Click any point to add a Label or Info.
- Drag points to adjust the path if needed.
- 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