PHPackages                             mediawiki/whats-nearby - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mediawiki/whats-nearby

AbandonedArchivedMediawiki-extension[Utility &amp; Helpers](/categories/utility)

mediawiki/whats-nearby
======================

Provides geolocation information to templates

44003[8 issues](https://github.com/SemanticMediaWiki/WhatsNearby/issues)PHP

Since Aug 4Pushed 11mo ago8 watchersCompare

[ Source](https://github.com/SemanticMediaWiki/WhatsNearby)[ Packagist](https://packagist.org/packages/mediawiki/whats-nearby)[ RSS](/packages/mediawiki-whats-nearby/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Whats Nearby
============

[](#whats-nearby)

[![Build Status](https://camo.githubusercontent.com/f9bc28965fea22d74b18cded16baffa0d908a38204f7215d50c4d9b306cf0011/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f53656d616e7469634d6564696157696b692f57686174734e65617262792e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/SemanticMediaWiki/WhatsNearby)[![Code Coverage](https://camo.githubusercontent.com/34876d5747190e5727f0b9ee88e4750a424cb45c194bb6ddc3007ea0ac5ef2ca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53656d616e7469634d6564696157696b692f57686174734e65617262792f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SemanticMediaWiki/WhatsNearby/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/649be70a620090bbf5e997ce2845a67508c203465feea2f7855306634980b0a0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53656d616e7469634d6564696157696b692f57686174734e65617262792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SemanticMediaWiki/WhatsNearby/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/462c18b54ca18510fa6bbcbb143fdc55753c5a2e9599bfcb34d085c089913af6/68747470733a2f2f706f7365722e707567782e6f72672f6d6564696177696b692f77686174732d6e65617262792f76657273696f6e2e706e67)](https://packagist.org/packages/mediawiki/whats-nearby)[![Packagist download count](https://camo.githubusercontent.com/1b77b6ecbcb947d1f33dc857ddae3d4c8f965a31b08519ee48bc115f94b2479a/68747470733a2f2f706f7365722e707567782e6f72672f6d6564696177696b692f77686174732d6e65617262792f642f746f74616c2e706e67)](https://packagist.org/packages/mediawiki/whats-nearby)

Whats Nearby is a small extension that adds geolocation (HTML5) detection information to templates in order for [`#ask`](https://github.com/SemanticMediaWiki/SemanticMediaWiki) distance queries to generate adaptive content.

This extension can be used to:

- Display queryable content that depends on variable location information (`detectLocation`, `watchLocation`)
- Instantly modify distance queries (`@@radius`) from a page view that rely on static coordinates
- Generate dynamic queryable `#ask` lists

Privacy: This extension makes actively use of the HTML5 geolocation feature in case the `nolocation` parameter is not used.

Requirements
------------

[](#requirements)

- PHP 5.3.2 or later
- MediaWiki 1.23 or later
- [Maps](https://github.com/JeroenDeDauw/Maps) 3.5 or later

Installation
------------

[](#installation)

The recommended way to install WhatsNearby is by using [Composer](https://getcomposer.org/) with an entry in MediaWiki's `composer.json`.

```
{
	"require": {
		"mediawiki/whats-nearby": "~1.0"
	}
}
```

1. From your MediaWiki installation directory, execute `composer require mediawiki/whats-nearby:~1.0`
2. Navigate to *Special:Version* on your wiki and verify that the package have been successfully installed.

Usage
-----

[](#usage)

[![image](https://cloud.githubusercontent.com/assets/1245473/13100182/71f52ad6-d53a-11e5-8d57-3d1f94f510ee.png)](https://cloud.githubusercontent.com/assets/1245473/13100182/71f52ad6-d53a-11e5-8d57-3d1f94f510ee.png)

Add a `#nearby` parser function to a page where the content is expected to be displayed for a geolocation.

```
{{#nearby:
 |querytemplate=Local libraries,Point of interest
 |coordinates=47° 37' 13.9368'' N,122° 20' 56.8860'' W
 |radius=300 m
 |interval=450
 |max=10000
 |format=googlemaps
 |detectLocation=true
 |watchLocation=false
 |localCache=300
 |controls=slider
 |class=extra-nearby-location
}}

```

Detailed information about the `#nearby` parser function and how to make use of templates can be found [here](docs/README.md).

Contribution and support
------------------------

[](#contribution-and-support)

If you want to contribute work to the project please subscribe to the developers mailing list and have a look at the contribution guideline.

- [File an issue](https://github.com/SemanticMediaWiki/WhatsNearby/issues)
- [Submit a pull request](https://github.com/SemanticMediaWiki/WhatsNearby/pulls)
- Ask a question on [the mailing list](https://www.semantic-mediawiki.org/wiki/Mailing_list)
- Ask a question on the #semantic-mediawiki IRC channel on Freenode.

Tests
-----

[](#tests)

This extension provides unit and integration tests that are run by a [continues integration platform](https://travis-ci.org/SemanticMediaWiki/WhatsNearby)but can also be executed using `composer phpunit` from the extension base directory.

License
-------

[](#license)

[GNU General Public License, version 2 or later](https://www.gnu.org/copyleft/gpl.html).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 51.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22235?v=4)[Stefan Wasilewski](/maintainers/SMW)[@smw](https://github.com/smw)

![](https://www.gravatar.com/avatar/372f9bc1233d5518b9522cb681210a8de2765a3a9bbde20138f6ad5332a411ca?d=identicon)[mwjames](/maintainers/mwjames)

---

Top Contributors

[![translatewiki](https://avatars.githubusercontent.com/u/24829418?v=4)](https://github.com/translatewiki "translatewiki (44 commits)")[![mwjames](https://avatars.githubusercontent.com/u/1245473?v=4)](https://github.com/mwjames "mwjames (24 commits)")[![kghbln](https://avatars.githubusercontent.com/u/1104078?v=4)](https://github.com/kghbln "kghbln (8 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (4 commits)")[![Nikerabbit](https://avatars.githubusercontent.com/u/1109395?v=4)](https://github.com/Nikerabbit "Nikerabbit (4 commits)")[![siebrand](https://avatars.githubusercontent.com/u/210297?v=4)](https://github.com/siebrand "siebrand (2 commits)")

### Embed Badge

![Health badge](/badges/mediawiki-whats-nearby/health.svg)

```
[![Health](https://phpackages.com/badges/mediawiki-whats-nearby/health.svg)](https://phpackages.com/packages/mediawiki-whats-nearby)
```

###  Alternatives

[phpsysinfo/phpsysinfo

phpSysInfo is a customizable PHP Script that parses /proc, and formats information nicely. It will display information about system facts like Uptime, CPU, Memory, PCI devices, SCSI devices, IDE devices, Network adapters, Disk usage, and more.

1.4k26.5k3](/packages/phpsysinfo-phpsysinfo)[jakezatecky/array_group_by

A function that groups/splits an array by the values of a given key or keys.

99209.5k2](/packages/jakezatecky-array-group-by)[kornrunner/ethereum-offline-raw-tx

Pure PHP Ethereum Offline Raw Transaction Signer

64204.6k22](/packages/kornrunner-ethereum-offline-raw-tx)[eightynine/filament-advanced-widgets

Advanced widgets for your filament php application

9286.3k](/packages/eightynine-filament-advanced-widgets)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
