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

Correct handling of a single element batch geocoding response #1160

Merged
merged 2 commits into from Jul 29, 2020

Conversation

DzmitryFomchyn
Copy link
Contributor

Closes #1119

Geocoding search service response has a different format depending on the query type

  • if a query contains ;, the service returns an array of results, represented as JSON array [{...}, {...}, ...]
  • otherwise, the server returns JSON object {...}

This PR adds flexible JSON parsing that can handle both cases.

@DzmitryFomchyn DzmitryFomchyn merged commit 1f7a240 into master Jul 29, 2020
@langsmith langsmith mentioned this pull request Jul 29, 2020
13 tasks
@DzmitryFomchyn DzmitryFomchyn deleted the df-json-parsing-fix branch June 12, 2023 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when batch forward geocoding a single query
3 participants