2017 © Pedro Peláez
 

mediawiki-extension whats-nearby

Provides geolocation information to templates

image

mediawiki/whats-nearby

Provides geolocation information to templates

  • Monday, July 16, 2018
  • by SMW
  • Repository
  • 3 Watchers
  • 5 Stars
  • 312 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

Whats Nearby

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Packagist download count, (*1)

Whats Nearby is a small extension that adds geolocation (HTML5) detection information to templates in order for #ask distance queries to generate adaptive content., (*2)

This extension can be used to:, (*3)

  • 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., (*4)

Requirements

  • PHP 5.3.2 or later
  • MediaWiki 1.23 or later
  • Maps 3.5 or later

Installation

The recommended way to install WhatsNearby is by using Composer with an entry in MediaWiki's composer.json., (*5)

{
    "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

image, (*6)

Add a #nearby parser function to a page where the content is expected to be displayed for a geolocation., (*7)

{{#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., (*8)

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., (*9)

Tests

This extension provides unit and integration tests that are run by a continues integration platform but can also be executed using composer phpunit from the extension base directory., (*10)

License

GNU General Public License, version 2 or later., (*11)

The Versions

16/07 2018

dev-master

9999999-dev https://www.semantic-mediawiki.org/wiki/Extension:WhatsNearby

Provides geolocation information to templates

  Sources   Download

GPL-2.0+ GPL-2.0-or-later

The Requires

 

geolocation maps mediawiki semantic queries semantic templates

17/02 2018

dev-compat

dev-compat https://www.semantic-mediawiki.org/wiki/Extension:WhatsNearby

Provides geolocation information to templates

  Sources   Download

GPL-2.0-or-later

The Requires

 

geolocation maps mediawiki semantic queries semantic templates

12/01 2018

dev-licenselabel

dev-licenselabel https://www.semantic-mediawiki.org/wiki/Extension:WhatsNearby

Provides geolocation information to templates

  Sources   Download

GPL-2.0-or-later

The Requires

 

geolocation maps mediawiki semantic queries semantic templates