Home > @magiclane/maps-sdk > ExternalInfoService

ExternalInfoService class

Signature:

export declare abstract class ExternalInfoService 

Methods

Method

Modifiers

Description

_checkWikiInfo(landmark)

static

Internal helper to check Wikipedia info and return both result and ExternalInfo object.

cancelWikiInfo(operationHandler)

static

Cancels a Wikipedia info request.

hasWikiInfo(landmark)

static

Checks if the landmark has Wikipedia info Requests all the wikipedia info at once (page title/url, page summary, and list of pictures - only urls of the pictures) - returns true if request successfully made, false if something went wrong.

requestWikiInfo(landmark, onComplete)

static

Requests Wikipedia info for a landmark. The result will be provided as an ExternalInfo object.