Click or drag to resize

GeoSearchGenerator Class

This is preliminary documentation and is subject to change.

Searches for articles around the given point (determined either by coordinates or by article name). (mw:Extension:GeoData#prop=coordinates)
Inheritance Hierarchy

Namespace: WikiClientLibrary.Generators
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.8.0-int.8+f07259cca53448109bd542f6a3e53c54ddd48d58
Syntax
public class GeoSearchGenerator : WikiPageGenerator<GeoSearchResultItem>

The GeoSearchGenerator type exposes the following members.

Constructors
 NameDescription
Public methodGeoSearchGeneratorInitializes a new instance of the GeoSearchGenerator class
Top
Properties
 NameDescription
Public propertyBoundingRectangle Geographical bounding box to search in.
Public propertyCompatibilityOptions Gets/sets the compatibility options used with this list.
(Inherited from WikiListT)
Protected propertyDistinctGeneratedPages When using the default implementation of EnumPagesAsync(IWikiPageQueryProvider), determines whether to remove duplicate page results generated from generator results. This property does not affect the behavior of EnumItemsAsync(CancellationToken).
(Inherited from WikiPageGeneratorTItem)
Public propertyGeneratorName The name of generator, used as the value of generator parameter in action=query request.
(Inherited from WikiPageGeneratorTItem)
Public propertyIncludesSecondaryCoordinates Gets/set a value indicating whether to include secondary coordinates in the search results.
Public propertyListName The name of list, used as the value of list parameter in action=query request.
(Overrides WikiListTListName)
Public propertyNamespaceIds Only list pages in these namespaces.
Public propertyPaginationSize Gets/sets maximum items returned per MediaWiki API invocation.
(Inherited from WikiListT)
Public propertyRadius Gets/sets the search radius in meters (10-10000).
Public propertySiteGets the MediaWiki site this instance applies to.
(Inherited from WikiListT)
Public propertyTargetCoordinate Gets/sets the coordinate around which to search.
Public propertyTargetTitle Gets/sets the title of page around which to search.
Top
Methods
 NameDescription
Public methodEnumGeneratorParameters Fills generator parameters for action=query&generator= request.
(Inherited from WikiPageGeneratorTItem)
Public methodEnumItemsAsync Asynchronously enumerates all the items in the list.
(Inherited from WikiListT)
Public methodEnumListParameters When overridden, fills generator parameters for action=query&list={ListName} request.
(Overrides WikiListTEnumListParameters)
Public methodEnumPagesAsync Asynchronously generates the sequence of pages.
(Inherited from WikiPageGeneratorTItem)
Public methodEnumPagesAsync(IWikiPageQueryProvider) Asynchronously generates the sequence of pages.
(Inherited from WikiPageGeneratorTItem)
Public methodEnumPagesAsync(PageQueryOptions) Asynchronously generates the sequence of pages.
(Inherited from WikiPageGeneratorTItem)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodItemFromJson Parses an item contained in the action=query&list= JSON response.
(Overrides WikiListTItemFromJson(JToken))
Protected methodItemsFromResponse From the given MediaWiki API response of the MediaWiki list request, locates the array of items whose items will be processed by ItemFromJson(JToken).
(Inherited from WikiListT)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnEnumItemsFailed When overriden, called when there is exception raised when executing the asynchronous generator function inside EnumItemsAsync(CancellationToken).
(Overrides WikiListTOnEnumItemsFailed(Exception))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also