googlemaps / google-maps-services-java

Java client library for Google Maps API Web Services
Apache License 2.0
1.71k stars 946 forks source link

Unknown type for enum com.google.maps.model.AddressComponentType: 'administrative_area_level_7' #985

Open gpradhan27 opened 4 months ago

gpradhan27 commented 4 months ago

Environment details

  1. Specify the API : Places API
  2. OS type and version : macOS Sonoma 14.4
  3. Library version and other environment information: 2.2.0

Steps to reproduce

A warning is thrown when ever api returns place type administrative_area_level_6 or administrative_area_level_7 - example if api contains response of type below

 {
                "long_name": "RT.2",
                "short_name": "RT.2",
                "types": [
                    "administrative_area_level_7",
                    "political"
                ]
            }

Stack trace

Unknown type for enum com.google.maps.model.AddressComponentType: 'administrative_area_level_7'
wangela commented 4 months ago

If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.

@gpradhan27 Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.