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

Add support for displaying municipality in AzureMaps autocomplete results #1242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kryber
Copy link

@kryber kryber commented Jan 30, 2025

We noticed that the autocomplete functionality in the AzureMaps provider was missing the ability to display the municipality (city). This was causing incomplete location suggestions, as cities were not included in the results.

To fix this, we added the following line to the formatGeocodeResponse function:

$builder->setLocality($result->address->municipality ?? null);

Now, when searching for an address like Via Giuseppe Garibaldi 62, IT, Italy, the autocomplete properly returns results that include city names. This improves the accuracy and usability of the geocoding provider.

Let us know if any adjustments are needed! 🚀

image

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

Successfully merging this pull request may close these issues.

1 participant