I save latitude and longitude values of a map point as integer in my database.
So my values are like: 3454534353. But when using, I need to use a float as 34.54534353.
How can I make this conversion?
Here’s how I create map point:
MapLocation *location = [[MapLocation alloc] init];
location.title = [NSString stringWithString:[locations objectForKey:@"title"]];
location.subtitle = [NSString stringWithString:[locations objectForKey:@"subtitle"]];
CLLocationCoordinate2D coordinate;
coordinate.latitude = // need a float like xx.xxxxx
coordinate.longitude = // need a float like xx.xxxxx;
location.coordinate = coordinate;
[annotations addObject:location];
[mapView addAnnotations:annotations];
Thanks in advance.
Moved the comment to answer
Hope this helps.