So reverse geocoding, the result looks like this:
results[0].formatted_address: "275-291 Bedford Ave, Brooklyn, NY 11211, USA",
results[1].formatted_address: "Williamsburg, NY, USA",
results[2].formatted_address: "New York 11211, USA",
results[3].formatted_address: "Kings, New York, USA",
results[4].formatted_address: "Brooklyn, New York, USA",
results[5].formatted_address: "New York, New York, USA",
results[6].formatted_address: "New York, USA",
results[7].formatted_address: "United States"
It's an array of addresses, one less detailed then the next. I need to loop through this list and get the address that ONLY contains the city/state. How would I do this?
It's not always a specific element (thanks Google).