libremap / libremap-api

The CouchDB server design document for LibreMap - a scalable, global and decentralized router database and map visualization for community networks, such as guifi, AlterMundi, FunkFeuer, ninux, freifunk, Commotion...
http://libremap.net/
GNU General Public License v3.0
10 stars 6 forks source link

allow nodes with no position (lat,lon) data #11

Open mojoaxel opened 10 years ago

mojoaxel commented 10 years ago

I understand that it makes no sence for an map-applikation to render nodes with no location data (lat, lon). But the libremap-api is not a map applikation. It provides only an API for a collection of wifi nodes. In the future I want to create simple statistic applikations that show e.g. the count of all online and offline nodes of a specific community. Also graphs like the ffmap-d3 are a nice example what could be done using the libremap-api as backend. For this tasks the position of nodes is not needed at all.

We should change the API in future versions to allow nodes with no position but instead change the map-specific views to simply ignore such nodes.

Old

lat: (required, number) latitude in degrees, range [-90,90], EPSG:3857.
lon: (required, number) longitude in degrees, range [-180,180], EPSG:3857.
elev: (optional, number) elevation in meters above mean sea level.

New

location: { (optional, object)
    lat: (required, number) latitude in degrees, range [-90,90], EPSG:3857.
    lon: (required, number) longitude in degrees, range [-180,180], EPSG:3857.
    elev: (optional, number) elevation in meters above mean sea level.
}

Is this something for version 2.0? What do you thing guys?