[BUG] MapsSearchClient.getReverseGeocoding() always returns null for MapsSearchAddressCountryRegion.getIso() #44529
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Maps
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
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: