GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - merefield/discourse-locations: Tools for handling locations in Discourse

BranchesTags
Open more actions menu

Latest commit

 

History

1,036 Commits
1,036 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
app
app
 
 
assets
assets
 
 
config
config
 
 
db/migrate
db/migrate
 
 
docs
docs
 
 
lib
lib
 
 
public
public
 
 
spec
spec
 
 
test/javascripts
test/javascripts
 
 
.discourse-compatibility
.discourse-compatibility
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.cjs
.prettierrc.cjs
 
 
.rubocop.yml
.rubocop.yml
 
 
.stylelintignore
.stylelintignore
 
 
COPYRIGHT.txt
COPYRIGHT.txt
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
crowdin.yml
crowdin.yml
 
 
eslint.config.mjs
eslint.config.mjs
 
 
meta-topic.md
meta-topic.md
 
 
osv-scanner.toml
osv-scanner.toml
 
 
package.json
package.json
 
 
plugin.rb
plugin.rb
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
stylelint.config.mjs
stylelint.config.mjs
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Discourse Locations

Discourse Locations adds structured and geocoded locations to topics and users, with map-based discovery throughout Discourse.

Functionality

  • Adds structured locations to topics, including optional or required geocoding.
  • Enables locations per category and supports category and site-wide topic map views.
  • Provides configurable map markers, clustering, labels, bounds, default centres, and tile providers.
  • Lets users save a voluntary profile location and optionally show it on posts, profiles, user cards, and the users directory map.
  • Supports configurable location formats, country flags, profile maps, and defaulting a new topic to the current user's location.
  • Includes local name and username search on the users map, deterministic recent-activity ordering, and privacy-aware location payloads.
  • Supports multiple geocoding providers while retaining textual locations when geocoding is not required.

Pro extension

Discourse Locations Pro Extension is an optional private extension available to GitHub Sponsors as a thank-you for supporting ongoing development. Individual and independent-community sponsors receive access from the $7/month Bronze tier; businesses and institutions must sponsor at the $40/month Silver tier or above.

Sponsor on GitHub to get Locations Pro

Once you have access, install the Pro extension alongside this base plugin to enable:

  • Automated user-location estimation from IP data, with configurable precision and privacy safeguards.
  • Nearby-topic discovery based on the signed-in user's saved location.
  • Optional location-aware tools for discourse-chatbot.
  • Permission-aware group and result-limit filters on the users map.
  • An interactive WebGL globe alternative to the base Leaflet users map.
  • An optional idle globe screen saver that reuses the interactive renderer.

The Pro extension has its own master setting and feature settings. Disabling or removing it leaves this base plugin's appearance and functionality unchanged.

Installation

Add the public plugin to your Discourse container's plugin clone section:

git clone https://github.com/merefield/discourse-locations.git

See How to install plugins in Discourse for the standard installation process.

Privacy and storage

Complete editable locations are stored in model custom fields. The locations_user and locations_topic tables contain spatial projections used for map membership, proximity, distance, and ordering.

Raw location custom fields are not globally public. The plugin exposes normalized data only through purpose-specific serializers and applies Discourse profile, group, and directory visibility rules to map results.

See Location data ownership for the storage contract and reconciliation task.

Extension API

Extension API version 1 is the baseline contract used by the base and Pro pairing. Extensions can verify compatibility with Locations::EXTENSION_API_VERSION after the base plugin initializes.

  • Server-side extensions should use Locations::UserLocationStore and Locations::TopicLocationStore instead of reading location custom fields directly.
  • Client-side extensions can read the normalized current-user location from currentUser.geo_location.
  • Users-map extensions can use the locations-users-map-controls and locations-users-map-surface outlets and the locations_users_map_query_options server modifier.

Documentation and support

  • Administration settings
  • Locations in topics
  • Locations in categories
  • Community discussion
  • Report a bug

About

Tools for handling locations in Discourse

Topics

discoursediscourse-plugingeolocationlocation

Resources

Readme
GPL-2.0 license
Activity

Stars

43 stars

Watchers

3 watching

Forks

53 forks
Report repository

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.