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

Impossible to sort getNearBySearch() by distance using rankby parameter #52

Open
jbacco opened this issue May 18, 2022 · 0 comments
Open

Comments

@jbacco
Copy link

jbacco commented May 18, 2022

The documentation for getNearBySearch() states the following contradiction:

[radius] Required parameters - Defines the distance (in meters) within which to return place results. The maximum allowed radius is 50 000 meters. **Note that radius must not be included if rankby=distance (described under Optional parameters below) is **specified.**

[rankby] Optional parameters - Specifies the order in which results are listed. **Note that rankby must not be included if radius (described under Required parameters above) is specified.**

However, the radius parameter is a required parameter and non-nullable, so it's impossible to exclude it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant