Crate libreloc_shared
source ·Expand description
Core. See ARCHITECTURE.adoc
Structs§
- POST /v2/geosubmit JSON API
- POST /v2/geosubmit JSON API
- POST /v2/geosubmit JSON API
- POST /v2/geosubmit JSON API
- POST /v2/geosubmit JSON API
- Data sent from client to server using API
- POST /v2/geosubmit JSON API
Constants§
- A minimap represents locations in the world were at least a datapoint is found matching a shortened hash.
- This are lenghts of geohashes that the client is starting at each lookup step
- Precision of geohash: from geohash length in chars to maximum error in km
Functions§
- Hash together latitude, longitude, WiFi MACaddr and SSID Format:
1<shortened_geohash>-<shortened_hash>
Returns: high-res geohash, fingerprint - Convert geohash len to location-stdev-meters
- Convert geohash to Plocation
- Calculate distance in meters using Haversine formula
- Calculate distance in meters using Haversine formula
- Convert location-stdev-meters to geohash len
- Select segment
- “sum” bloom filters by counting the number of true values for each location
Type Aliases§
- Single datapoint generated by a client detecting an emitter: coordinates of the phone (if any), macaddr, ssid
- Lsm 🔒Location accuracy as standard deviation expressed in meters
- Used during lookup to overlay one minimap from each emitter. The u8 counts the number of matches (and u8 is big enough)