[BUG] MapsSearchClient.getReverseGeocoding() always returns null for MapsSearchAddressCountryRegion.getIso() #44529
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
When requesting an address via the method
getReverseGeocoding
of theMapsSearchClient
, theiso
value of the country region is alwaysnull
.The reason seems to be a wrong field matcher in the
MapsSearchAddressCountryRegion.fromJson()
method. The response field is named"iso"
but the matcher checks for"ISO"
.To Reproduce
Steps to reproduce the behavior: (Kotlin)
Expected behavior
I'd expect the value to be filled by the iso code.
Screenshots
Debugged

fromJson
mapping function ofMapsSearchAddressCountryRegion
:Query result:

Setup (please complete the following information):
The text was updated successfully, but these errors were encountered: