Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GO-750-improved-geocoding-types-limit-jsdoc #44

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### New Features

- added `continental_marine` and `major_landform` to geocoding type
- Added `continental_marine` and `major_landform` to geocoding type

### Bug Fixes

Expand All @@ -13,6 +13,7 @@
### Others

- Languages are now listed in the Client library
- Improved geocoding types and limit documentation

## 2.0.0

Expand Down
8 changes: 6 additions & 2 deletions src/services/geocoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ export type CommonForwardAndReverseGeocodingOptions =
apiKey?: string;

/**
* Maximum number of results to show. Must be between 1 and 10. Default is 5 for forward and 1 for reverse geocoding.
* Maximum number of results to show. Must be between 1 and 10.
* For reverse geocoding with multiple `types` this must not be set or must be set to 1.
* Default is 5 for forward and 1 for reverse geocoding.
*/
limit?: number;

/**
* Types of features to query.
* Features of specified types to query.
* If not specified, feature of all available types except `poi` and `major_landform` will be queried (`types = ["poi", "major_landform"]`, `excludeTypes = true`).
* In case of reverse geocoding if just a single type is specified, then multiple nearby features of the single type can be returned,
* otherwise single feature for every specified type (or default types) can be returned.
*/
types?: GeocodingPlaceType[];

Expand Down
Loading