Get Current Location
This method gets the current location of the user. You can set the accuracy between 5 and 100 meters (default is 10).
Swift
Objective - C
Roam.getCurrentLocation(accuracy) { (location, error) in
//location?.coordinate.latitude
//location?.coordinate.longitude
//location?.altitude
// error?.code
// error?.message
}
[Roam getCurrentLocation:accuracy handler:^(CLLocation * location, RoamError * error) {
// location?.coordinate.latitude
// location?.coordinate.longitude
// location?.altitude
// error?.code
// error?.message
}];
Export as PDF
Copy link