Skip to content

Commit

Permalink
more doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Oct 15, 2018
1 parent f166644 commit 6157ddf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions packages/arcgis-rest-geocoder/src/geocode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ export interface IGeocodeParams extends IParams {
* import { suggest, geocode } from '@esri/arcgis-rest-geocoder';
* suggest("LAX")
* .then((response) => {
* response.suggestions[2].magicKey; // => "dHA9MCNsb2M9Mjk3ODc2MCNsbmc9MzMjcGw9ODkxNDg4I2xicz0xNDoxNDc4MTI1MA=="
* });
* geocode("LAX, 1 World Way, Los Angeles, CA, 90045, USA", {magicKey: "dHA9MCN..."})
* geocode({
* singleLine: response.suggestions[1].text,
* magicKey: response.suggestions[0].magicKey
* })
* })
* ```
*/
magicKey?: string;
Expand Down Expand Up @@ -77,7 +79,7 @@ export interface IGeocodeResponse {
* countryCode: "USA"
* })
* .then((response) => {
* response.candidates[0].location; // => { x: -77.036533, y: 38.898719, spatialReference: ... }
* response.candidates[1].location; // => { x: -77.036533, y: 38.898719, spatialReference: ... }
* });
* ```
*
Expand Down
8 changes: 5 additions & 3 deletions packages/arcgis-rest-geocoder/src/suggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ export interface ISuggestRequestOptions extends IEndpointRequestOptions {
* import { suggest, geocode } from '@esri/arcgis-rest-geocoder';
* suggest("LAX")
* .then((response) => {
* response.suggestions[2].magicKey; // => "dHA9MCNsb2M9Mjk3ODc2MCNsbmc9MzMjcGw9ODkxNDg4I2xicz0xNDoxNDc4MTI1MA=="
* });
* geocode("LAX, 1 World Way, Los Angeles, CA, 90045, USA", {magicKey: "dHA9MCN..."})
* geocode({
* singleLine: response.suggestions[1].text,
* magicKey: response.suggestions[1].magicKey
* })
* })
* ```
*/
magicKey?: string;
Expand Down

0 comments on commit 6157ddf

Please sign in to comment.