Google Place Id

This will use to compare the place based on google place id. So no need to compare the place string which may not be equal always

Example

from geo_id import GeoIds

geo_ids=GeoIds('India')

geo_ids.get_id_data()

{
  "country_id": "ChIJkbeSa_BfYzARphNChaFPjNc", 
  "country": "India"
}

geo_ids=GeoIds('Adyar')

geo_ids.get_id_data()

{
  "locality_id":"ChIJgRbEFe1nUjoRg54kepbOaWU", 
  "locality":"Adyar", 
  "city_id":"ChIJYTN9T-plUjoRM9RjaAunYW4",
  "city":"Chennai", 
  "state_id":"ChIJM5YYsYLFADsR8GEzRsx1lFU", 
  "state":"Tamil Nadu",   
  "country_id":"ChIJkbeSa_BfYzARphNChaFPjNc", 
  "country":"India"
 }

Installation

pip install google-place-id