Title: API URL Change
Last modified: December 7, 2017

---

# API URL Change

 *  Resolved [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/api-url-change/)
 * Hello,
 * I tested Map builder.
 * unfortunately, we have a server is in China for local service, and any global
   resource like google, twitter, Facebook…are blocked by China government Firewall
   name Great Firewall.
 * we can NOT access google resouces both at fronend and backend:
    [https://maps.google.com](https://maps.google.com)
   [https://maps.googleapis.com/maps/api/js](https://maps.googleapis.com/maps/api/js)
 * Fornately, we can access google map at frontend by URL like this:
    [http://www.google.cn/maps/@35.780287,104.1361118,4z](http://www.google.cn/maps/@35.780287,104.1361118,4z)
 * and backend we change access JS resource URL like this
    [https://www.google.cn/jsapi](https://www.google.cn/jsapi)
   [https://maps.google.cn/maps/api/js](https://maps.google.cn/maps/api/js)
 * you might like to check Google map official document at this page
 * > [https://developers.google.com/maps/faq#china_ws_access](https://developers.google.com/maps/faq#china_ws_access)
   > You will have to edit the code to use the Maps API in China. The bad side is
   > that it doesn’t support https and it will also give you some page speed warnings,
   > but it is possible.
 * So, it would be much great if you would like to help me with a piece of code 
   snippet to switch the url, So that I can use the plugin of Code Snippets([https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/))
   to input that code.
 * Or let me know which code lines I should change in plugins files.
 * Thanks, have a nice day.
 * Alex

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

 *  Plugin Author [Matt Cromwell](https://wordpress.org/support/users/webdevmattcrom/)
 * (@webdevmattcrom)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/api-url-change/#post-9758528)
 * Hi Alex,
 * Unfortunately it looks like those urls are hardcoded into our plugin at the moment.
   I created an issue for our dev team to add a filter there which would enable 
   you to add one line to your site to change that.
 * For now unfortunately that means you’d have to go through the plugin and update
   the URLs manually. That’s the only option I have currently. Thanks!
 *  Thread Starter [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/api-url-change/#post-9759190)
 * Thanks, it would be great thanks if your dev team could help and let me know 
   which lines we should change, and which file?
 * Thanks in advance.
 * Alex
 *  Thread Starter [alexlii](https://wordpress.org/support/users/alexlii/)
 * (@alexlii)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/api-url-change/#post-9760962)
 * Or you might let me know only the files related to frontent map show, so that
   there is no delay when users view the pages. As to backend, I can create maps
   by VPN.
 * Thanks.
 * Alex

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

The topic ‘API URL Change’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-maps-builder_f9f9f9.svg)
 * [Maps Builder - Google Maps Plugin](https://wordpress.org/plugins/google-maps-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-maps-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-maps-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/google-maps-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-maps-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-maps-builder/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [alexlii](https://wordpress.org/support/users/alexlii/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/api-url-change/#post-9760962)
 * Status: resolved