CalKit

GeoJSON Generator

Generate GeoJSON data from coordinates.

하나 이상의 포인트를 입력하세요.

GeoJSON 출력

{
  "type": "Feature",
  "properties": {
    "name": "서울시청"
  },
  "geometry": {
    "type": "Point",
    "coordinates": [
      126.978,
      37.5665
    ]
  }
}

Overview

Generate GeoJSON data by entering latitude and longitude coordinates. Supports Point, LineString, and Polygon geometry types. Copy the output or download as a .geojson file. Useful for map visualization, spatial data analysis, and API development.

Formula

GeoJSON follows the RFC 7946 standard for geographic data. Coordinates use [longitude, latitude] order (longitude first!). A Feature object consists of type, geometry, and properties. Polygons require the first and last point to be identical (closed ring), and coordinates follow the right-hand rule (counterclockwise).

How to Use

  1. 1Select a GeoJSON type (Point, LineString, or Polygon).
  2. 2Enter point name, latitude, and longitude.
  3. 3Click '+ Add Point' to add more coordinates (LineString needs 2+, Polygon needs 3+).
  4. 4Copy the generated GeoJSON or download as a .geojson file.

Tips

  • GeoJSON coordinate order is [longitude, latitude] — opposite of the common [lat, lon] convention!
  • In Polygon mode, the last point is automatically connected to the first.
  • Visualize your GeoJSON output at geojson.io for verification.
  • Use FeatureCollection to group multiple Points for multi-marker display on maps.
  • Major map libraries (Leaflet, Mapbox, Google Maps) natively support GeoJSON.

FAQ

Q. What is GeoJSON?

GeoJSON is an open standard (RFC 7946) for representing geospatial data in JSON format. It supports basic geometry types like Point, LineString, and Polygon, plus Feature and FeatureCollection for including attribute information. It is the most widely used spatial data format for web mapping services.

Q. Why does GeoJSON use [longitude, latitude] order?

GeoJSON follows the mathematical convention of [x, y] order, which maps to [longitude, latitude]. This is opposite to the common 'latitude, longitude' notation used in everyday speech, so be careful when inputting coordinates.

Q. How can I use the generated GeoJSON?

The generated GeoJSON can be loaded directly into map libraries like Leaflet, Mapbox GL JS, Google Maps API, and D3.js for visualization. It also works with GIS software like QGIS, PostGIS databases, and spatial analysis APIs.

Was this calculator helpful?

Related Calculators

Popular Calculators