1

How can you get the two-letter state abbreviation from a Place returned by the Google APIs for Android for places in the US?

Geocoder.getFromLocation provides the full state name in Address.getAdminArea. Is there a to convert the state name to its abbreviation? Or a solution that doesn't involve Geocoder at all?

Edward Brey
  • 40,302
  • 20
  • 199
  • 253
  • Possible duplicate of [Obtaining State abbreviation from getAdminArea();](https://stackoverflow.com/questions/26879882/obtaining-state-abbreviation-from-getadminarea) – Bryan Sep 21 '18 at 15:57
  • That question is specific to `Geocoder`. This question is broader. A geocoder-based answer would solve the problem, but there isn't currently a clean answer. Since we're starting from a `Place`, there may be solution not related to `Geocoder` that will do a better job. – Edward Brey Sep 21 '18 at 16:02

0 Answers0