Ribbit-Network / ribbit-network-dashboard

The web dashboard for the world's largest crowdsourced network of open-source, low-cost, CO2 Gas Detection Sensors.
MIT License
17 stars 16 forks source link

Prevent Lat:0, Long:0 GPS coordinates from Appearing on Map #62

Closed keenanjohnson closed 2 years ago

keenanjohnson commented 2 years ago

@spestana noticed that someone was publishing a 0,0 GPS coordinate on the map, likely due to someone's software erroring for some reason.

We should screen these out somehow. Perhaps by showing a second page of senors that have default locations for example.

image

sriki18 commented 2 years ago

Can we simply add a filter near here?

https://github.com/Ribbit-Network/ribbit-network-dashboard/blob/8f04d07e97056d535bfbcabeed98f02800061dc6/db.py#L9-L14

Just filtering out lat=0 & lon=0 over when querying the map.