ABSTRACT

GeoJSON is a special case of JavaScript Object Notation (JSON), which makes it fully compatible and easy to process with web technologies such as JavaScript. It is a fully-featured vector layer format, capable of representing complex vector layers and their non-spatial attributes. This chapter presents an overview of the structure of different types of GeoJSON strings and discusses GeoJSON geometry types. The geojson.io web application is great way to explore the GeoJSON format. This website contains an interactive map and a drawing control that readers can use to draw new vector layers and to edit drawn ones. The chapter recreates a simplified GeoJSON viewer to learn more about using GeoJSON with Leaflet. Many modern websites use a set of techniques called Asynchronous JavaScript and XML (Ajax) to partially update the contents of web pages.XML or JSON are commonly used as the data exchange formats for communication between the server and the client using Ajax.