Skip to content

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

@mojoaxel

Description

@mojoaxel

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions