Home > @magiclane/maps-sdk > ExternalInfo > getExternalInfo
ExternalInfo.getExternalInfo() method
Requests information about a landmark on wikipedia.
Signature:
static getExternalInfo(landmark: Landmark, onWikiDataAvailable?: (externalInfo: ExternalInfo | null) => void): ExternalInfo;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
landmark |
Landmark for which the request will be done. | |
|
onWikiDataAvailable |
(externalInfo: ExternalInfo | null) => void |
(Optional) callback to be triggered after the wikipedia request is done. It will be called with the external info object on success and null on error. |
Returns:
The external info object. The [onWikiDataAvailable] callback should be awaited before accessing data from the object.
Exceptions
An exception if it fails.