createLocationFromLocation

fun createLocationFromLocation(location: Location?): VMELocation?

Takes a native location object and converts it to a VisioMove Essential object Uses the geo-fences within the map bundle to determine if the location falls within a building and if so, what floor.

Notes

By setting the Location's hasAltitude() to false, the location will be forced to the outside (independent of whether it falls within a building's geo-fence).

Notes

This method will return null if called prior to VMELifeCycleListener.mapDataDidLoad.

Return

A VMELocation indicating the location within the venue, or null if the location is invalid or does exist not within the venue.

Since

1.2

Parameters

location

A location object. The 'altitude' attribute will be used to determine the correct floor.