Answers.Body: <p>I suspect you can pass skip_geocode to the params of 'fixAddress' a number of ways (such as injecting it with tpl override or javascript).</p>
  
  <p>Check CRM/Core/BAO/Address.php line 381-382.</p>
  
  <pre><code>// check if geocode should be skipped (can be forced with an optional parameter through the api)
  $skip_geocode = (isset($params['skip_geocode']) &amp;&amp; $params['skip_geocode']) ? TRUE : FALSE;
  </code></pre>
  
  <p>Leave geocoding enabled so the cron process completes it, but it is skipped when accessing via web.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-01T07:45:14.173Z
Answers.LastActivityDate: 2016-03-01T07:45:14.173Z
Answers.UserDisplayName: David Hayes
Body: <p>I'd want to only do the geocoding in batch mode, because otherwise, it's too slow for my use case (petition signatures with dozen of signatures per second).</p>
  
  <p>Is there a way to use the geocoding via the cronjob but disable it from the api call (contact.create)?</p>
  
Tags: <cron-job><geocoding>
Title: Is it possible to do geocoding in cronjob only?
ThreadText: # Is it possible to do geocoding in cronjob only?
  
  (Asked by: username_0 on 2016-02-26)
  
  I'd want to only do the geocoding in batch mode, because otherwise, it's too slow for my use case (petition signatures with dozen of signatures per second).
  
  Is there a way to use the geocoding via the cronjob but disable it from the api call (contact.create)?
  
  **Tags:** cron-job, geocoding
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-03-01. Score: 2
  
  I suspect you can pass skip\_geocode to the params of 'fixAddress' a number of ways (such as injecting it with tpl override or javascript).
  
  Check CRM/Core/BAO/Address.php line 381-382.
  
  ```
  // check if geocode should be skipped (can be forced with an optional parameter through the api)
  $skip_geocode = (isset($params['skip_geocode']) && $params['skip_geocode']) ? TRUE : FALSE;
  
  ```
  
  Leave geocoding enabled so the cron process completes it, but it is skipped when accessing via web.
  
  
  ---
  
  