<div dir="ltr"><div dir="ltr"><div>Which geohash grid a line feature fall into can be determined by working out the following:</div><div><br></div><div dir="ltr">hash_start=left(ST_geoHash(ST_transform(ST_StartPoint(geom),4326)),5), hash_end=left(ST_geoHash(ST_transform(ST_EndPoint(geom),4326)),5)<br></div><div dir="ltr"><br></div><div>and working out which hash = a geohash grid found where hash = hash_start or hash = hash_end</div><div><br></div><div>The following also produces a result but needs to understand explicitly.</div><div dir="ltr"><br></div><div dir="ltr">hash = left(ST_geoHash(ST_transform(wkb_geometry,4326)),5)<br></div><div dir="ltr"><br></div><div>Any explicit explanation on GeoHash of a whole line?</div><div><br></div><div>Regards,</div><div><br></div><div>David</div></div></div>