Add geolocation support to events (NIP-52 'g' tag) #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Allow events to be geotagged with coordinates so they can be discovered on a map. NIP-52 supports the
gtag (geohash) for location-based filtering.Scope
geohashfield to Event model (optional string)latitudeandlongitudefields to CreateEvent (optional floats)ngeohashlibrary, already used by the webapp activities module)gtag in the NostrEventgeohashcolumnlocationfield (free-text venue/address) remains separate — geohash is the machine-readable coordinateNIP-52 spec
The
gtag uses geohash encoding for location-based relay queries:Relays can filter by geohash prefix for geographic proximity searches.
Related
ngeohashfor activity geolocation