Get Current Location (iOS)

Call the method to get the current location of the user at your desired accuracy level.

This method gets the current location of the user. You can set the accuracy between 5 and 100 meters (default is 10).

Roam.getCurrentLocation(accuracy) { (location, error) in
    //location?.coordinate.latitude           
    //location?.coordinate.longitude       
    //location?.altitude
    //  error?.code
    //  error?.message 
}

Last updated