Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIP-3166: Geo-location tag #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

steliosrammos
Copy link
Owner

Draft NIP for introducing a new geo-location tag that can be added to any event. The tag makes use of the ISO-3166 standard country codes and would allow easier filtering and indexing of events based on their geographic location.

It differs from the current g tag presented in NIP-52 in that it is much less granular than a geohash, which is not ideal for indexing.

The same difference is true for the proposed Geospatial Types NIP-44.

Possibly a third parameter could be added (eg: ["g", "<ISO-3166 code>", "country"]), in conjunction to the existing g tag, as presented in NIP-66 to support multiple g tag types. But I'm not sure that's preferable for indexing.

Open to feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant