Title: Disable Geocoding trigger while importing
Last modified: August 8, 2022

---

# Disable Geocoding trigger while importing

 *  Resolved [just4me67](https://wordpress.org/support/users/just4me67/)
 * (@just4me67)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/geocoding-trigger/)
 * Hi, I use AllImport Pro (latest version) and this jobmanager import addon for
   WP Job Manager. I really like the plugin but there is one thing I would like 
   to change.
 * We use an external Feed for importing jobs into WP. We want to import this file
   every 30 or 60 minutes. Every import is about 600 to 700 jobs imported.
 * I use the _job_location field as a custom field because I have all data I need
   delivered by the feed. But I also need the Geocoding API for a radius location
   search.
    Now when I import all jobs, every job sends a request to geocoding API
   which I don’t need and don’t want! Because when importing 700 jobs per hour this
   sends (700jobs*24hours*30days) about 500000 requests per month to the Geocoding
   API. This will cost us a lot of money for google. Is there any chance to disable
   the geocoding requests while importing the jobs?
 * I would really appreciate if someone has an idea for me.
    -  This topic was modified 3 years, 10 months ago by [just4me67](https://wordpress.org/support/users/just4me67/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/geocoding-trigger/#post-15905351)
 * Hi [@just4me67](https://wordpress.org/support/users/just4me67/),
 * > Is there any chance to disable the geocoding requests while importing the jobs?
 * You can remove your Google Geocoding API key from the import template to stop
   our add-on from making Geocoding requests to your account.
 *  Thread Starter [just4me67](https://wordpress.org/support/users/just4me67/)
 * (@just4me67)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/geocoding-trigger/#post-15905369)
 * Hi, thank you for your answer.
    But this is not working because in your code (/
   classes/class-importer-jobs-location.php) you use the API Key which is inserted
   in WP Job Manager settings. Message “Obtaining Google Maps API key from the WP
   Job Manager settings”… And the API in the WP Job Manager Settings I need for 
   a radius search function so I can’t leave this field empty. For now I disabled
   the cURL call by commenting some lines in your plugin code. It is not update 
   safe in that way but it works.
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/geocoding-trigger/#post-15932875)
 * Hey [@just4me67](https://wordpress.org/support/users/just4me67/),
 * Sorry, you’re absolutely right, and I’m not sure why it didn’t do that in my 
   tests (unless I just missed it). In any case, I’ve added an internal task to 
   add an option or a filter to disable geocoding requests, and/or disable fetching
   the key from WP Job Manager, in a future release.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable Geocoding trigger while importing’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager-xml-csv-listings-import/assets/icon-256x256.
   png?rev=2570153)
 * [WP All Import – Job Listing Import for WP Job Manager](https://wordpress.org/plugins/wp-job-manager-xml-csv-listings-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager-xml-csv-listings-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager-xml-csv-listings-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager-xml-csv-listings-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager-xml-csv-listings-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager-xml-csv-listings-import/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/geocoding-trigger/#post-15932875)
 * Status: resolved