Skip to content

Commit

Permalink
more samples, as promised
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Jun 12, 2018
1 parent 216f23c commit 4acd4d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion packages/arcgis-rest-geocoder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,21 @@ import { geocode } from '@esri/arcgis-rest-geocoder';

geocode("LAX")
.then((response) => {
response.candidates[0].location; // => { x: -118.409, y: 33.943, spatialReference: { wkid: 4326 } }
response.candidates[0].location;
// => { x: -118.409, y: 33.943 }
});
```

### [API Reference](https://esri.github.io/arcgis-rest-js/api/geocoder/)

* [`geocode("1 World Way Los Angeles 90045")`](https://esri.github.io/arcgis-rest-js/api/geocoder/geocode/)

* [`suggest("Starb")`](https://esri.github.io/arcgis-rest-js/api/geocoder/suggest/)

* [`reverseGeocode([-118.409,33.943 ])`](https://esri.github.io/arcgis-rest-js/api/geocoder/reverseGeocode/)

* [`bulkGeocode()`](https://esri.github.io/arcgis-rest-js/api/geocoder/bulkGeocode/)

### Issues

If something isn't working the way you expected, please take a look at [previously logged issues](https://github.com/Esri/arcgis-rest-js/issues) first. Have you found a new bug? Want to request a new feature? We'd [**love**](https://github.com/Esri/arcgis-rest-js/issues/new) to hear from you.
Expand Down
2 changes: 1 addition & 1 deletion packages/arcgis-rest-geocoder/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function getGeocodeService(
}

/**
* Deprecated. Please use `getGeocodeService()` instead.
* Deprecated. Please use [`getGeocodeService()`](../getGeocodeService/) instead.
*
* @param requestOptions - Request options can contain a custom geocoding service to fetch metadata from.
* @returns A Promise that will resolve with the data from the response.
Expand Down

0 comments on commit 4acd4d1

Please sign in to comment.