Merge pull request #4 from Kirillcpp/coordinatesParseFix

Parsing coordinates fix
This commit is contained in:
deathbaba 2013-11-08 00:01:12 -08:00
commit 5e8555a5af

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];