5 // Created by Christian Brunschen on 25/06/2008.
6 // Copyright 2008 Google Inc. All rights reserved.
9 #import "GeoResultParser.h"
10 #import "GeoParsedResult.h"
12 #define PREFIX @"geo:"
14 @implementation GeoResultParser
16 + (ParsedResult *)parsedResultForString:(NSString *)s {
17 NSRange prefixRange = [s rangeOfString:PREFIX options:NSCaseInsensitiveSearch];
18 if (prefixRange.location == 0) {
19 int restStart = prefixRange.location + prefixRange.length;
20 return [[[GeoParsedResult alloc] initWithLocation:[s substringFromIndex:restStart]]