Open jywarren opened 5 years ago
Hi @jywarren ๐ ! What will this module do ? Kindly give more details ๐ .
I think it would absorb some functions like:
What other very abstract utilities might be useful for people doing JavaScript work using blurred locations, that isn't specific to an interface or Leaflet? Maybe the conversions between precision and human-readable terms?
This library can be really simple. Let's also brainstorm any functions that'd be common between LBL and LBLD, that are also not Leaflet.
I also just added this!
BL.distanceToPrecision()
and BL.precisionToDistance()
This is starting to be a great run through of what each function does; we could expand it a bit with more scenarios and situations, maybe?
https://github.com/publiclab/blurred-location/blob/main/spec/javascripts/test_spec.js
Could this set of conversions be moved into this library? https://github.com/publiclab/leaflet-blurred-location/issues/98
How hard would it be to integrate a function like this? https://github.com/publiclab/leaflet-blurred-location/issues/170
I think perhaps we should copy this section of the docs from LBL to here -- we can leave it there too but this is the underlying library that brings this to life: https://github.com/publiclab/leaflet-blurred-location#human-readable-blurring
@sagarpreet-chadha ! ๐ ๐
Planning issue :
A utility libraryโ for filtering locations to a specific precision level for use in Leaflet Blurred Location (LBL)
BL.distanceToPrecision(meters, latitude)
andBL.precisionToDistance(decimals, latitude)
? If no latitude is specified, we could output a message explaining how precision changes with latitude, and mentioning the latitudes of two cities with very different values?