SemanticMediaWiki/WhatsNearby

Name: WhatsNearby

Owner: Semantic MediaWiki

Description: Provides geolocation information to templates

Created: 2016-02-17 03:11:52.0

Updated: 2018-05-03 07:32:54.0

Pushed: 2018-05-03 07:32:53.0

Homepage:

Size: 101

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Whats Nearby

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Packagist download count

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

This extension can be used to:

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

Requirements
Installation

The recommended way to install WhatsNearby is by using Composer 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

image

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

earby:
erytemplate=Local libraries,Point of interest
ordinates=47° 37' 13.9368'' N,122° 20' 56.8860'' W
dius=300 m
terval=450
x=10000
rmat=googlemaps
tectLocation=true
tchLocation=false
calCache=300
ntrols=slider
ass=extra-nearby-location

Detailed information about the #nearby parser function and how to make use of templates can be found here.

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.

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.

License

GNU General Public License, version 2 or later.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.