Introducing GeoJSON



GeoJSON and Geographic Data

GeoJSON is a way of representing geographic data. It is an open standard format designed for creating, identifying and storing simple geographical features, along with their non-spatial attributes in JSON. JSON stands for javascript object notation and is a text form of javascript objects.


Lets say you are a dog lover. You have a pack of 3 dogs, and the location of each dog is something you want to work with, you could display each location on a map using "points", i.e. the exact location, which is one type of data that can be represented in GeoJSON.

Parts of GeoJSON

GeoJSON consists of the following parts:

icon

Geometry Object

This contains the location information and can be represented using a variety of geometry object types:

Point: The exact location of an object
Line: A path formed by joining different points
Polygon: A line which starts and ends at the same point

icon

Feature Object

A feature contains the initial geometry object with its coordinates, but also stores any additional data that can be used to give meaning to the coordinates.

Going back to our dogs, we could attach their names to each of their locations so as to quickly see where each dog is and track their movements

icon

Feature Collection

This is a list of feature objects. A GeoJSON file(or dataset) will mostly consist of a feature collection containing all the data that is to be represented

Hence all our dog data will be stored in a feature collection which will make up most of our GeoJSON file and can be used when needed

Summary

GeoJSON is becoming a very popular data format among many GIS technologies and services — it's simple, lightweight, straightforward, easy to use and 100% recommended

Click on any of the below links to gain more information