MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / getGeohashBounds

Function getGeohashBounds

web/src/utils/geohash.ts:12–18  ·  view source on GitHub ↗
(geohash: string)

Source from the content-addressed store, hash-verified

10
11// Function to create grid bounds from geohash
12export const getGeohashBounds = (geohash: string) => {
13 const { latitude: [minLat, maxLat], longitude: [minLng, maxLng] } = decodeGeoHash(geohash);
14 return [
15 [minLat, minLng],
16 [maxLat, maxLng],
17 ];
18};

Callers 1

RiderMapFunction · 0.90

Calls 1

decodeGeoHashFunction · 0.85

Tested by

no test coverage detected