new Lookup( data, image ) → {Lookup}

Description
Creates a Lookup object
Parameters
Name Type Description
data * Dataset to lookup in
image String Image source path
Returns

Members


isInit :boolean

Description
Has the Lookup object been initialized

useImageLookup :boolean

Description
Should a ImageLookup be used

imageLookup :ImageLookup

Description
ImageLookup object

getIdFromLatLon

Description
Convert a latitude and longitude to id
Parameters
Name Type Description
lat number target latitude
lon number target longitude
Returns
id

getFromId

Description
Get element using id
Parameters
Name Type Description
id number
Returns
Data element

getFromCode

Description
Get element using code (i.e. ISO-3 country code)
Parameters
Name Type Description
code number code to lookup
Returns
Data element

getFromName

Description
Get element using name
Parameters
Name Type Description
name number name to lookup
Returns
Data element