Answers.Body: <p>I have fixed the issue!</p>
  
  <p>It seems that Google API does not support restricting DNS in server geocoding mode, I have created a new API key with IP restriction.</p>
  
  <p>Beware people, it can cause you headaches.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-22T02:10:20.843Z
Answers.LastActivityDate: 2018-02-22T02:10:20.843Z
Answers.UserDisplayName: Jean Luc
Body: <p>Geocoding is not working for my addresses, I tried everything I could find on the web.</p>
  
  <p>We are using the CiviCRM version 4.7 with Wordpress 4.9.4. We are adding contacts mainly using the REST API.</p>
  
  <p>I have Google geocoding setup with an valid and tested API Key.</p>
  
  <p>My current address format is the default one, but my <strong>parsing is disabled</strong>. </p>
  
  <pre><code>{contact.address_name}
  {contact.street_address}
  {contact.supplemental_address_1}
  {contact.supplemental_address_2}
  {contact.supplemental_address_3}
  {contact.city}{, }{contact.state_province}{ }{contact.postal_code}
  {contact.country}
  </code></pre>
  
  <p>When I run the scheduled job, it just says that it processed hundreds of contacts, but none of them was geocoded, displaying no errors at all.</p>
  
  <p>Job params:</p>
  
  <pre><code>geocoding=1
  parse=0
  start=0
  end=500
  throttle=0
  </code></pre>
  
  <p><em>I have also tried with throttling.</em></p>
  
  <p>Job Log:</p>
  
  <pre><code>Summary
  Finished execution of Geocode and Parse Addresses with result: Sucesso (Endereços Avaliados: 483 Endereços Geodificados: 0 )
  Details
  Parameters raw (from db settings): 
  geocoding=1
  parse=0
  start=0
  end=500
  throttle=0
  
  Parameters parsed (and passed to API method): 
  a:6:{s:7:"version";i:3;s:9:"geocoding";s:1:"1";s:5:"parse";s:1:"0";s:5:"start";s:1:"0";s:3:"end";s:3:"500";s:8:"throttle";s:1:"0";}
  
  Full message: 
  Finished execution of Geocode and Parse Addresses with result: Sucesso 
  (Endereços Avaliados: 483
  Endereços Geodificados: 0)
  </code></pre>
  
  <p>Also, when I add a new contact.. even if it has a valid address, it also doesn't work.</p>
  
  <p>Can someone help me? I am really confused.</p>
  
  <p>OBS: I have tried the OSM extension, but only 7 of 500 addresses were geocoded.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-21T21:47:48.333Z
Comments.Text: If you add or save a single address, does geocoding work?  The scheduled job "batch" geocoding is more complex than single address geocoding, so it might be helpful to try the single address first.
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-21T22:02:29.487Z
Comments.Text: @JonG-MegaphoneTech Greetings Jon!
  
  It doesn't geocode single addresses also.
Comments.UserDisplayName: Jean Luc
Tags: <wordpress><geocoding>
Title: Issues while geocoding Brazilan addresses with Google API on version 4.7
ThreadText: # Issues while geocoding Brazilan addresses with Google API on version 4.7
  
  (Asked by: username_0 on 2018-02-21)
  
  Geocoding is not working for my addresses, I tried everything I could find on the web.
  We are using the CiviCRM version 4.7 with Wordpress 4.9.4. We are adding contacts mainly using the REST API.
  I have Google geocoding setup with an valid and tested API Key.
  My current address format is the default one, but my parsing is disabled. 
  {contact.address_name}
  {contact.street_address}
  {contact.supplemental_address_1}
  {contact.supplemental_address_2}
  {contact.supplemental_address_3}
  {contact.city}{, }{contact.state_province}{ }{contact.postal_code}
  {contact.country}
  
  When I run the scheduled job, it just says that it processed hundreds of contacts, but none of them was geocoded, displaying no errors at all.
  Job params:
  geocoding=1
  parse=0
  start=0
  end=500
  throttle=0
  
  I have also tried with throttling.
  Job Log:
  Summary
  Finished execution of Geocode and Parse Addresses with result: Sucesso (Endereços Avaliados: 483 Endereços Geodificados: 0 )
  Details
  Parameters raw (from db settings): 
  geocoding=1
  parse=0
  start=0
  end=500
  throttle=0
  
  Parameters parsed (and passed to API method): 
  a:6:{s:7:"version";i:3;s:9:"geocoding";s:1:"1";s:5:"parse";s:1:"0";s:5:"start";s:1:"0";s:3:"end";s:3:"500";s:8:"throttle";s:1:"0";}
  
  Full message: 
  Finished execution of Geocode and Parse Addresses with result: Sucesso 
  (Endereços Avaliados: 483
  Endereços Geodificados: 0)
  
  Also, when I add a new contact.. even if it has a valid address, it also doesn't work.
  Can someone help me? I am really confused.
  OBS: I have tried the OSM extension, but only 7 of 500 addresses were geocoded.
  
  **Tags:** wordpress, geocoding
  
  > **Comments:**
  > **username_1**: If you add or save a single address, does geocoding work?  The scheduled job "batch" geocoding is more complex than single address geocoding, so it might be helpful to try the single address first.  
  > **username_0**: @JonG-MegaphoneTech Greetings Jon!  It doesn't geocode single addresses also.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-02-22. Score: 2 | Accepted answer
  
  I have fixed the issue!
  
  It seems that Google API does not support restricting DNS in server geocoding mode, I have created a new API key with IP restriction.
  
  Beware people, it can cause you headaches.
  
  
  ---
  
  