VisioMove Essential (Android)  1.27.6

◆ createPositionFromLocation()

VMEPosition createPositionFromLocation ( Location  location)

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 builing and if so, what floor.

This method should not be called too often (every one second at minimum) as it may slow down the app if there are too many calls in a short time.

Note
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).
This method will return null if called prior to listeners::VMELifeCycleListener.mapDidLoad(VMEMapView).
Parameters
locationA location object. The 'altitude' attribute will be used to determine the correct floor.
Returns
A VMEPosition indicating the location within the venue, or null if the location is invalid or does not exist within the venue.
Version
1.2
© 2022 Copyright Visioglobe, All Rights Reserved. View our Privacy Policy