NoSQL
JSON-like documents
Rows & tables vs documents & collections
GeoJSON is a standard format for encoding a variety of geographic data structures
Well supported by google maps js, leaflet.js, mapbox
Point is a single gps position
Polygon is a bounded area, represented by an array of coordinates, first + last same, closed loop.
Off coast between dungarvan & youghal
Allows you to search for documents in a collection that are near a point you specify in your query
Min and max optional and specified in Meters
Use case – operator can send messages to active boaters near a specific location
Allows search for documents in a collection that are enclosed in a specific boundary
Use case – we could define a boundary for each coastguard flotaill and then use those boundaries to search for active trips that are within area of responsibility
Intersects allows search for geographical areas in a collection that partially overlap with an area you supply in your query
Geojson collection of counties
Aprox 500k gps positions in the county collection