Class: NearbyGateway

NearbyGateway(options)

new NearbyGateway(options)

API for retrieving nearby pages

Parameters:
Name Type Description
options Object

Configuration options

Properties
Name Type Description
api mw.Api
Source:

Methods

getPages(coords, range, exclude) → {jQuery.Deferred}

Returns a list of pages around a given point

Parameters:
Name Type Description
coords Object

In form { latitude: 0, longitude: 2 }

range number

Number of meters to perform a geosearch for

exclude string

Name of a title to exclude from the list of results

Source:
Returns:

Object taking list of pages as argument

Type
jQuery.Deferred

getPagesAroundPage(page, range) → {jQuery.Deferred}

Gets the pages around a page. It excludes itself from the search

Parameters:
Name Type Description
page string

Page title like "W_San_Francisco"

range number

Number of meters to perform a geosearch for

Source:
Returns:

Object taking list of pages as argument

Type
jQuery.Deferred