Home > @magiclane/maps-sdk > ExternalInfo

ExternalInfo class

ExternalInfo object

Provides Wikipedia information for a landmark, fetched directly from the public Wikipedia API in TypeScript (no native/WASM round-trip).

Places

Signature:

export declare class ExternalInfo 

Properties

Property

Modifiers

Type

Description

imagesCount

readonly

number

Get the count of the images on the Wikipedia page.

wikiImagesCount

readonly

number

Get the count of the images on the Wikipedia page.

wikiPageDescription

readonly

string

Get the Wikipedia page summary (text).

wikiPageLanguage

readonly

string

Get the Wikipedia page language.

wikiPageTitle

readonly

string

Get the Wikipedia page title.

wikiPageUrl

readonly

string

Get the Wikipedia page URL.

Methods

Method

Modifiers

Description

cancelWikiImageInfoRequest(listener)

Cancel a specific Wikipedia image info request started via requestWikiImageInfo.

cancelWikiInfo()

Cancel a Wikipedia request. Automatically called if a new request is initiated.

create()

static

getExternalInfo(landmark, onWikiDataAvailable)

static

Requests information about a landmark on Wikipedia.

getWikiImageDescription(index)

Get Wikipedia image description directly.

getWikiImageThumbnailUrl(index, quality)

Get a sized thumbnail URL for a Wikipedia image.

getWikiImageTitle(index)

Get Wikipedia image title directly.

getWikiImageUrl(index)

Get the full-resolution Wikipedia image URL directly.

hasWikiInfo(landmark)

Checks if the landmark has Wikipedia info.

requestWikiImageInfo(imageIndex, onComplete)

Get info (description) on one Wikipedia image.