Parsing coordinates fix

This commit is contained in:
Kirill Zhdanovich 2013-11-07 18:30:13 +03:00
parent 0a3f9a8ae7
commit 2ef4a45f2f

View file

@ -111,7 +111,7 @@ static BOOL openUrlOnBalloonClick = NO;
NSString * key = [values objectAtIndex:0];
if ([key isEqualToString:@"ll"])
{
NSArray * coords = [param componentsSeparatedByString:@","];
NSArray * coords = [[values objectAtIndex:1] componentsSeparatedByString:@","];
if (coords.count == 2)
{
pin.lat = [[NSDecimalNumber decimalNumberWithString:[coords objectAtIndex:0]] doubleValue];