Skip to content

Commit ffb8c20

Browse files
committed
Renaming token to key on the parameters.
1 parent 3b4eb91 commit ffb8c20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.textile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ There's also a @region@ (@MKCoordinateRegion@) property in case the returned pla
6464

6565
h2. Google Maps API Token
6666

67-
You can include a Google Maps API token by initializing the geocoder and setting it.
67+
You can include a Google Maps API token by initializing the geocoder and setting it. You should use the default initializers to include the token.
6868

6969
<pre>
70-
[geocoder setGoogleMapsToken:@"token"];
70+
[geocoder setGoogleMapsToken:@"token"];
7171
</pre>
7272

7373
h2. Credits

SVGeocoder/SVGeocoder.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ - (SVGeocoder*)initWithAddress:(NSString *)address region:(CLRegion *)region com
118118

119119
- (void)setGoogleMapsToken:(NSString *)token {
120120

121-
[self addParametersToRequest:[@{@"token": token} mutableCopy]];
121+
[self addParametersToRequest:[@{@"key": token} mutableCopy]];
122122

123123
}
124124

0 commit comments

Comments
 (0)