how to bind district and state through pincode via google api

2 Points
1 Posts

I want to bind automatically state and district on entering the pin code of that city. how can i do this by using google API.

Views: 10169
Total Answered: 1
Total Marked As Answer: 0
Posted On: 01-Mar-2018 03:35

Share:   fb twitter linkedin
Rahul Maurya
Rahul M...
1442 Points
241 Posts

Hi Shivam,

Follow the following google doc link  

You can use, 2,500 free requests per day, calculated as the sum of client-side and server-side queries; and If you want more you will need to enable billing and will paid for that.

See javascript code for getting location from zipocde/pincode 

function codeAddress() {
  componentRestrictions: {
    country: 'AU',
    postalCode: '2000'
}, function(results, status) {
  if (status == 'OK') {
    var location = results[0].geometry.location;
  } else {
    window.alert('Geocode was not successful for the following reason: ' + status);
Posted On: 04-Mar-2018 01:32
 Log In to Chat