Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Baar committed Feb 6, 2018
1 parent b354b45 commit 95a79c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ https://developer.android.com/reference/android/location/Address.html

### Example
```js
nativegeocoder.reverseGeocode(success, failure, 52.5072095, 13.1452818);
nativegeocoder.reverseGeocode(success, failure, 52.5072095, 13.1452818, { useLocale: true, maxResults: 1 });
function success(result) {
alert("The address is: \n\n" + JSON.stringify(result[0]));
}
Expand All @@ -73,7 +73,7 @@ Forward geocode a given address to find coordinates.

### Example
```js
nativegeocoder.forwardGeocode(success, failure, "Berlin");
nativegeocoder.forwardGeocode(success, failure, "Berlin", { useLocale: true, maxResults: 1 });
function success(coordinates) {
alert("The coordinates are latitude = " + coordinates[0].latitude + " and longitude = " + coordinates[0].longitude);
}
Expand Down

0 comments on commit 95a79c5

Please sign in to comment.