Answers.Body: <p>You need to enable Mapping and Geocoding from <code>civicrm/admin/setting/mapping?reset=1</code></p>
  
  <ul>
  <li><p>Enter your API Key or Application ID. An API Key is required for the Google Maps API. Refer to developers.google.com for the latest information.</p></li>
  <li><p>Save the form and you should be able to see latitude and longitude based on your contact's address. Note that it displays when you click on inline edit and load the address form as shown below.</p></li>
  </ul>
  
  <p><a href="https://i.sstatic.net/rUuKc.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/rUuKc.png" alt="enter image description here"></a></p>
  
  <p>Also see <a href="https://docs.civicrm.org/user/en/latest/initial-set-up/mapping/" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/latest/initial-set-up/mapping/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-03T11:28:11.843Z
Answers.LastActivityDate: 2018-09-03T11:28:11.843Z
Answers.UserDisplayName: jitendra - fuzion
Answers.Body: <p>Welcome to Stackexchange. Take a look at the docs about <a href="https://docs.civicrm.org/user/en/latest/initial-set-up/mapping/" rel="nofollow noreferrer">geocoding and mapping</a>. If you're using Google then you need an API key for geo coding requests. To get Google API key you can find <a href="https://developers.google.com/maps/documentation/geocoding/usage-limits" rel="nofollow noreferrer">information here</a>.   </p>
  
  <p>Once you have api key navigate CiviCRM >> Administer >> System Settings >> Mapping and Geocoding and set the API key there. </p>
  
  <p>After enabling the mapping provider, you may need to use this script to generate latitude/longitude information for existing contact addresses. </p>
  
  <ul>
  <li><p>Navigate to CiviCRM >> Administer >> Localization >> Address Settings. Update Address Editing section with Latitude, Longitude, and Street Address Parsing enabled
  <a href="https://i.sstatic.net/JtsvR.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JtsvR.png" alt="enter image description here"></a></p>
  
  <ul>
  <li>Enable cron job 'Geocode and Parse Addresses' by navigating to CiviCRM >> Administer >> System Settings >> Scheduled Jobs. With geocoding=1 and parse=0/1 in the Geocoding Parameters.</li>
  </ul></li>
  </ul>
  
  <p>You can also use CiviCRM <a href="https://civicrm.org/extensions/geocoder" rel="nofollow noreferrer">Geocoder</a> extension which provides additional information about the address.</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-03T11:39:31.083Z
Answers.LastActivityDate: 2018-09-03T11:39:31.083Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I want to generate latitude and longitude automatically for CiviCRM contact when the address is present.</p>
  
  <p>How to achieve this?</p>
  
Tags: <contacts><addresses><geocoding><map>
Title: How to create latitude and longitude automatically for civirm contact
ThreadText: # How to create latitude and longitude automatically for civirm contact
  
  (Asked by: username_0 on 2018-09-03)
  
  I want to generate latitude and longitude automatically for CiviCRM contact when the address is present.
  
  How to achieve this?
  
  **Tags:** contacts, addresses, geocoding, map
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-09-03. Score: 4
  
  You need to enable Mapping and Geocoding from `civicrm/admin/setting/mapping?reset=1`
  
  * Enter your API Key or Application ID. An API Key is required for the Google Maps API. Refer to developers.google.com for the latest information.
  * Save the form and you should be able to see latitude and longitude based on your contact's address. Note that it displays when you click on inline edit and load the address form as shown below.
  
  [![enter image description here](https://i.sstatic.net/rUuKc.png)](https://i.sstatic.net/rUuKc.png)
  
  Also see <https://docs.civicrm.org/user/en/latest/initial-set-up/mapping/>
  
  
  ---
  
  ### Answer by username_2 on 2018-09-03. Score: 2
  
  Welcome to Stackexchange. Take a look at the docs about [geocoding and mapping](https://docs.civicrm.org/user/en/latest/initial-set-up/mapping/). If you're using Google then you need an API key for geo coding requests. To get Google API key you can find [information here](https://developers.google.com/maps/documentation/geocoding/usage-limits).
  
  Once you have api key navigate CiviCRM >> Administer >> System Settings >> Mapping and Geocoding and set the API key there.
  
  After enabling the mapping provider, you may need to use this script to generate latitude/longitude information for existing contact addresses.
  
  * Navigate to CiviCRM >> Administer >> Localization >> Address Settings. Update Address Editing section with Latitude, Longitude, and Street Address Parsing enabled
    [![enter image description here](https://i.sstatic.net/JtsvR.png)](https://i.sstatic.net/JtsvR.png)
  
    + Enable cron job 'Geocode and Parse Addresses' by navigating to CiviCRM >> Administer >> System Settings >> Scheduled Jobs. With geocoding=1 and parse=0/1 in the Geocoding Parameters.
  
  You can also use CiviCRM [Geocoder](https://civicrm.org/extensions/geocoder) extension which provides additional information about the address.
  
  HTH
  
  Pradeep
  
  
  ---
  
  