Data & CSV
CSV points to GeoJSON
Build a GeoJSON FeatureCollection from latitude and longitude columns.
A clear answer. Here’s how.
Requires finite decimal WGS84 latitude in −90…90 and longitude in −180…180 degrees. Emits GeoJSON Point coordinates in longitude, latitude order; other columns become string properties. No geocoding, reprojection or network lookup occurs. Blank coordinates are errors; output is limited to 2 MB and ordinary CSV row limits.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Location CSV
Name,Latitude,Longitude London,51.5074,-0.1278 Paris,48.8566,2.3522
- Column separator
- Comma
- Latitude column
- Latitude
- Longitude column
- Longitude
Example result
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"Name": "London"
},
"geometry": {
"type": "Point",
"coordinates": [
-0.1278,
51.5074
]
}
},
{
"type": "Feature",
"properties": {
"Name": "Paris"
},
"geometry": {
"type": "Point",
"coordinates": [
2.3522,
48.8566
]
}
}
]
}2 WGS84 degree positions. Coordinate order is longitude, latitude; remaining properties stay strings.