gem.core. Landmark

new Landmark()

Methods

getAddress() → {string}

Get formated text of Address.

Returns:
Type: 
string

getAddressField(addressField) → {string}

Get Address field content by name

Parameters:
NameTypeDescription
addressFieldgem.core.EAddressField

field type

Returns:
Type: 
string

getBoundingBox() → {gem.core.BoundingBox}

get bounding box for the geographic area.

Returns:
Type: 
gem.core.BoundingBox

getContactInfo() → {string}

Get formated text contact info

Returns:
Type: 
string

getCoordinates() → {gem.core.Coordinates}

Gets the centroid coordinates.

Returns:

On return the parameter is set to the actual value. The coordinates may be invalid. This aspect needs to be checked by the API user.

Type: 
gem.core.Coordinates

getCountryFlagImage(bitmapContainer) → {boolean}

Get the country flag for the landmark.

Parameters:
NameTypeDescription
bitmapContainergem.core.BitmapContainer

output image

Returns:
  • true if the flag was found, false otherwise
Type: 
boolean

getCountryIsoCode() → {string}

Get Country ISO code

Returns:
Type: 
string

getDescription() → {string}

Get the description of this landmark.

Returns:
Type: 
string

getExtraInfo() → {string}

Get formated text extra info,each info separated by ','

Returns:
Type: 
string

getFormatedDetails() → {string}

Get formatted details

Returns:
Type: 
string

getFormatedName() → {string}

Get formatted name

Returns:
Type: 
string

getImage(bitmapContainer)

Parameters:
NameTypeDescription
bitmapContainergem.core.BitmapContainer

output for Landmark image

getLandmarkId() → {number}

Returns the landmark ID.

Returns:
  • ID >= 0 Success.
Type: 
number

getName() → {string}

Get the name of this landmark.

Returns:
  • On return the parameter is set to the field value. It may be empty.
Type: 
string

getUrl() → {string}

Get page url or booking url or Wikipedia page

Returns:

url

Type: 
string

getValueForExtraInfo(extrakey) → {string}

Get value for extra info key string

Parameters:
NameTypeDescription
extrakeystring

key string

Returns:
Type: 
string

hasWikipediaInfo(externalInfo) → {boolean}

Returns if landmark has wikipedia info

Parameters:
NameTypeDescription
externalInfogem.core.ExternalInfo

object to handle external info

Returns:
Type: 
boolean

requestWikipediaInfo(callbackfunction, externalInfo) → {gem.core.WikiDescriptionListener}

Request wikipedia info. asnyc function

Parameters:
NameTypeDescription
callbackfunctionwikipediainfocallback
externalInfogem.core.ExternalInfo

object to handle external info

Returns:
  • wikipedia listener object. Please use delete method on this object, after wikipedia
Type: 
gem.core.WikiDescriptionListener

setCoordinates(coordinates)

Sets the coordinates for the landmark.

Parameters:
NameTypeDescription
coordinatesgem.core.Coordinates

The new coordinates for the landmark.

setDescription(description)

Sets the description for the landmark.

Parameters:
NameTypeDescription
descriptionstring

The new description for the landmark.

setImage(usableIconId)

Sets the image for the landmark using an icon ID.

Parameters:
NameTypeDescription
usableIconIdnumber

The ID of the icon to use as the image.

setImageByString(imageString)

Sets the image for the landmark using an image string.

Parameters:
NameTypeDescription
imageStringstring

The image string to use as the image.

setName(name)

Sets the name for the landmark.

Parameters:
NameTypeDescription
namestring

The new name for the landmark.

setWaypointTrackData(pathData)

Sets the waypoint track data for the landmark.

Parameters:
NameTypeDescription
pathDatagem.d3Scene.Path

The new waypoint track data for the landmark.