an easy geo data system across languages and databases
Adds, updates, queries, and deletes geospatial data in PostGIS.
pt = mapstore << [ lat, lng ]Adds, updates, queries, and deletes geospatial data in MongoDB.
query := make(map[string]interface{})Adds, updates, queries, and deletes geospatial data without any database. So scripting is OK!
mapstore.near({ lat: 40, lng: -70 }, 2, function(err, twoNearest){ });Sometimes the code doesn't look like your regular API. Parameters and types are left loose. The goal is to allow you to store your data with as little converting / ETL work as possible.
When you query the database, complexities of point-in-polygon or sort-by-distance queries are hidden inside the module.
If you're writing your first mapping script, you don't want to set up a server and a DB. You shouldn't need to. Just add this module.
You can always run mapstore.to_geojson or the equivalent function to export all of your data in an open format.
Export an HTML+JS map using OpenStreetMap and Leaflet.js as an embed or as a full HTML page.