I used google map api to get a street address of a house in Madrid, Spain. Then I got the following for place_administrative_area_level_1.
place_administrative_area_level_1_short: Comunidad de Madrid place_administrative_area_level_1_long: Comunidad de Madrid
Then I saved those details to database. Now I want to search the addresses I saved from Madrid. So from front end, again I search google place api by Madrid, Spain. Then google returns me the following for place_administrative_area_level_1.
place_administrative_area_level_1_short: Community of Madrid place_administrative_area_level_1_long: Community of Madrid
See the difference? Now I can't use this string to search my database as it has different value. In both cases, I am sending language=en. So why it is returning different values for this address field? The only difference is that, for the 1st one, I used like a street address of a house in Madrid. In second instance, I used like Madrid, Spain only. But in both cases, it should return the same value for place_administrative_area_level_1. Because of this, I can't search my database by a single value.