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

Geocoding API: Exception while processing address type "university" #31

Closed
mattjonesorg opened this issue Oct 1, 2014 · 0 comments
Closed

Comments

@mattjonesorg
Copy link
Contributor

In response to this query: https://maps.googleapis.com/maps/api/geocode/json?address=800+Huntington+Ave%2C+Boston%2C+MA+2115, one of the address types returned is "university" which the library does not understand.

Exception in thread "main" java.lang.RuntimeException: Unknown address type 'university'
at com.google.maps.model.AddressType.lookup(AddressType.java:249)
at com.google.maps.internal.AddressTypeAdapter.read(AddressTypeAdapter.java:46)
at com.google.maps.internal.AddressTypeAdapter.read(AddressTypeAdapter.java:33)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:95)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:183)
at com.google.gson.Gson.fromJson(Gson.java:805)
at com.google.gson.Gson.fromJson(Gson.java:743)
at com.google.maps.internal.OkHttpPendingResult.parseResponse(OkHttpPendingResult.java:224)
at com.google.maps.internal.OkHttpPendingResult.await(OkHttpPendingResult.java:159)
at com.google.maps.PendingResultBase.await(PendingResultBase.java:55)
@mattjonesorg mattjonesorg changed the title Geocoding API: Exception while processing address component "postal_code_suffix" Geocoding API: Exception while processing address type "university" Oct 1, 2014
mattjonesorg pushed a commit to mattjonesorg/google-maps-services-java that referenced this issue Oct 1, 2014
Added University to the list of address types.
@broady broady closed this as completed Oct 1, 2014
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

No branches or pull requests

2 participants