Home > @magiclane/maps-sdk > WikipediaService

WikipediaService class

Signature:

export declare class WikipediaService 

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the WikipediaService class

Methods

Method

Modifiers

Description

cancelAll()

Abort every in-flight request started by this service.

getWikiImageUrl(image, quality)

Resolve the URL of a thumbnail at the requested quality. Matches the C++ RequestWikiImage strURL composition (line 625-629 of WikiInfoImpl.cpp).

requestWikiImage(image, quality, signal)

Fetch the image bytes as a Blob.

requestWikiInfo(params)

Fetch title, description, page URL and image list for a landmark. Mirrors ExternalInfo::requestWikiInfo in the C++ SDK.