[ios] Latitude and longitude swapped

This commit is contained in:
Igor Khmurets 2014-06-07 16:24:36 -07:00 committed by Alex Zolotarev
parent 903c746d09
commit c603afa690

View file

@ -66,9 +66,9 @@
{
self.pinPoint = point;
self.addressLabel.text = address;
NSString * longitude = [NSString stringWithFormat:@"%.7f", MercatorBounds::XToLon(self.pinPoint.x)];
NSString * latitude = [NSString stringWithFormat:@"%.7f", MercatorBounds::YToLat(self.pinPoint.y)];
self.coordinatesLabel.text = [NSString stringWithFormat:@"%@, %@", longitude, latitude];
NSString * longitude = [NSString stringWithFormat:@"%.7f", MercatorBounds::XToLon(self.pinPoint.x)];
self.coordinatesLabel.text = [NSString stringWithFormat:@"%@, %@", latitude, longitude];
self.distanceLabel.text = [self distance];
}