Blog / Does Google Maps work in China?

Does Google Maps work in China?

TL;DR

Google Maps does not work in Mainland China. All Google services, including Google Maps, the Google Maps JavaScript API, and Google Maps embeds, are inaccessible from within China. For websites that use Google Maps, this means the map section of your site will fail to load for visitors in China, and depending on how the map is implemented, it can delay or break the rest of the page as well. Alternatives like Baidu Maps, Gaode Maps (Amap), and Tencent Maps are the standard mapping platforms used within China. Chinafy detects Google Maps on websites and can replace them with a China-compatible alternative so that visitors in China see a working map without requiring you to rebuild the page or maintain a separate site.

Does Google Maps work in China?

No. Google Maps is not accessible from within China. This applies to Google Maps on the web (maps.google.com), the Google Maps mobile apps, and the Google Maps APIs, including the JavaScript API, Embed API, Static Maps API, and Geocoding API.

Google stopped supporting its China-specific Maps API endpoint in February 2020, which means even the workaround that some developers previously relied on (using maps.google.cn instead of maps.google.com) is no longer an option.

This is part of a broader pattern: all Google services, including Google Search, Gmail, Google Fonts, Google Analytics, YouTube, and Google Drive, are inaccessible from within China. For any website that relies on Google services as part of its functionality, this creates a set of compatibility issues that need to be addressed specifically for China visitors.

What happens when a website uses Google Maps in China

If your website includes a Google Maps embed or uses the Google Maps JavaScript API, here's what a visitor in China will experience:

If the map is loaded asynchronously (which is more common), the rest of the page will usually render (unless there are other render-blocking assets that have failed), but the map section will appear as a blank space, a grey box, or a broken element. The visitor will see the rest of your page, but any location, directions, or store locator functionality powered by Google Maps will be missing entirely.

If the map script is loaded synchronously or is render-blocking, the entire page can stall while the browser waits for a response from Google's servers. The browser will keep trying to connect until the request times out, which can take 30 seconds or longer. During that time, the visitor may see a partially loaded page or nothing at all.

In both cases, the experience is poor. And on pages where the map is a primary element (a contact page with a location, a hotel page showing nearby attractions, a store locator, or a real estate listing), the loss of the map can remove a significant part of the page's value.

How Google Maps affects website performance in China

Google Maps doesn't exist in isolation on most websites. A single Google Maps embed can load multiple resources from Google's servers:

The Google Maps JavaScript API (maps.googleapis.com)

Map tile images

Geocoding and directions API calls

Associated Google libraries and dependencies

Each of these is a separate request to a Google domain. In China, each of these requests will either time out or fail entirely. If any of these resources are render-blocking, the browser queues up behind them, waiting for a response before it can continue building the page.

Even in cases where the map loads asynchronously and doesn't directly block page rendering, the failed requests still consume browser resources. The browser opens connections, waits for responses that never come, and eventually gives up. On mobile devices with limited processing power, this background overhead can slow down the rendering of everything else on the page.

The practical impact goes beyond just a missing map. If your site has a Google Maps embed on a page that also loads other slow or blocked third-party resources, the combined effect of multiple failed requests can make the page significantly slower or cause it to break in ways that aren't immediately obvious.

Why a CDN doesn't fix Google Maps in China

A CDN (content delivery network) speeds up delivery of your own content by caching it at edge servers closer to your visitors. But a CDN doesn't serve or proxy third-party resources from external domains.

When your website loads Google Maps, the request goes directly from the visitor's browser to maps.googleapis.com. Your CDN has no involvement in that request, no matter where your CDN nodes are located. The request is between the visitor and Google's infrastructure, and since Google's services are inaccessible from China, the CDN can't do anything about it.

This is true for all third-party resources, but it's especially relevant for Google Maps because the failure is absolute: it's not just slow, it doesn't load at all. A CDN might help with general latency improvements for your first-party content, but it won't fix a broken map embed.

China's coordinate system and why it matters for maps

Even beyond the access issue, there's a technical detail that's worth understanding if you're implementing mapping functionality for China.

China uses a coordinate system called GCJ-02, which is mandated by the Chinese government for all mapping services operating in the country. GCJ-02 applies a deliberate, non-linear offset to geographic coordinates compared to the global standard (WGS-84) used by GPS and most international mapping platforms, including Google Maps.

The offset is variable, meaning it's not a consistent shift that can be corrected with a simple calculation. Locations can appear 100 to 700 metres away from their actual position. This means that if you were to plot a WGS-84 coordinate (from Google Maps or standard GPS data) directly onto a Chinese mapping service that uses GCJ-02, the pin would land in the wrong place.

All mapping services authorized to operate in China, including Baidu Maps, Gaode Maps, and Tencent Maps, use GCJ-02 or their own variant of it. Baidu Maps uses a further modified coordinate system called BD-09, which adds an additional layer of offset on top of GCJ-02.

For websites with mapping functionality, this matters because you can't simply take coordinates from Google Maps and drop them into a Chinese map service. The coordinates need to be converted. Open-source conversion libraries exist for this purpose, but it's an additional step that can trip up teams who aren't aware of the issue.

What are the alternatives to Google Maps in China?

There are three primary mapping platforms used in China, each with its own strengths.

Baidu Maps

Baidu Maps is the most widely used mapping service in China, with over 700 million users. It offers a comprehensive JavaScript API with support for interactive maps, geocoding, routing, street view, and traffic data. The API and documentation are in Chinese, and registering a developer account requires a Chinese phone number and business license, which can be a barrier for international companies. Baidu Maps uses the BD-09 coordinate system.

Gaode Maps (Amap)

Gaode Maps, also known as Amap, is the second-largest mapping platform in China and is part of the Alibaba ecosystem. It offers the best English-language support among Chinese mapping services, with locations showing both English and Chinese labels. Gaode Maps is also the data source for Apple Maps in China. It uses the GCJ-02 coordinate system.

Tencent Maps

Tencent Maps, backed by Tencent (the parent company of WeChat), is the third major option. It has a smaller market share than Baidu Maps or Gaode Maps but is widely used within the WeChat ecosystem. Tencent Maps also uses the GCJ-02 coordinate system.

For websites serving visitors in China, the choice between these services depends on factors like language support needs, the mapping features your site requires, and whether you have the ability to register for Chinese developer accounts.

Replacing Google Maps on your website for China visitors

If your website uses Google Maps, there are a few approaches to make mapping work for China visitors.

1. Manually replace Google Maps with a Chinese alternative. You can remove the Google Maps embed or API call and replace it with a Baidu Maps, Gaode Maps, or Tencent Maps implementation. This gives you full control but requires development work: registering for a Chinese maps API account, converting your location coordinates from WGS-84 to the appropriate Chinese coordinate system, and rebuilding any map functionality (markers, info windows, routing, etc.) using the new API. You'll also need to decide whether to serve the Chinese map to all visitors or conditionally load it based on the visitor's location, which adds further complexity.

2. Use conditional loading based on visitor location. Some teams implement geo-detection to serve Google Maps to visitors outside China and a Chinese mapping service to visitors in China. This preserves the Google Maps experience for your global audience while providing a working map for China visitors. The trade-off is additional development and maintenance overhead, as you're now running two parallel mapping implementations.

3. Use a platform that handles the replacement automatically. Rather than manually rebuilding or maintaining conditional logic, you can use Chinafy, which detects any single-location Google Maps and replaces it with a China-compatible alternative as part of a broader China web optimization process. Multi-location maps as generated via Google Maps Javascript API may require a more manual process.

How Chinafy helps

Chinafy detects Google Maps embeds and API calls on your website and replaces them with a China-compatible mapping alternative for visitors in China, so the map section of your site works instead of showing a blank space or broken element.

This is part of Chinafy's broader approach to optimizing websites for China. Google Maps is one of many third-party resources that don't work in China. Chinafy handles these incompatibilities across the board, including Google Fonts, Google Analytics, Google reCAPTCHA, YouTube embeds, Facebook plugins, and an inexhaustible list of other services. The optimization works as a bolt-on to your existing website without requiring a rebuild, rehost, or separate site for China.

For companies with using Google Maps (hotels showing nearby locations, real estate listings, store locators, contact pages with directions), fixing the issue is often one of the most visible improvements for China visitors. A page that previously showed a broken grey box now shows a working, interactive map.

If your website uses Google Maps and you have visitors in China, get in touch with Chinafy for a free site analysis to see how your pages load in the region.

Get in touch with Chinafy

FAQs

Is Google Maps completely blocked in China? 

Yes. Google Maps, including the web version, mobile apps, and all Maps APIs (JavaScript API, Embed API, Static Maps API, Geocoding API), is inaccessible from within China. Google's China-specific Maps API endpoint was also discontinued in February 2020.

What map service should I use instead of Google Maps for China? 

The three main alternatives are Baidu Maps (largest user base, Chinese-language only), Gaode Maps/Amap (best English support, used by Apple Maps in China), and Tencent Maps (integrated with the WeChat ecosystem). Or choose Chinafy as an option if you want to keep Google Maps on your global site while delivering a China-compatible alternative to visitors in China.

Can I use Google Maps and a Chinese map service on the same website? 

Yes, through conditional loading based on visitor location. You can serve Google Maps to visitors outside China and a Chinese mapping service to visitors in China. However, this requires maintaining two parallel implementations and handling coordinate system conversions. Chinafy automates this process without requiring you to build or maintain the conditional logic.

Will a VPN make Google Maps work for my China visitors? 

You can't control whether your visitors use a VPN, and most don't. Your website needs to work for the majority of visitors in China, who access the internet without a VPN. Even with a VPN, Google Maps faces accuracy issues in China due to the GCJ-02 coordinate system offset.

Does a broken Google Maps embed affect the rest of my page? 

It can. If the Google Maps script is loaded synchronously or is render-blocking, the entire page can stall for 30+ seconds while the browser waits for the request to time out. Even when loaded asynchronously, the failed requests still consume browser resources and can slow down overall page performance, especially on mobile devices.

Does Chinafy replace Google Maps automatically? 

Chinafy detects Google Maps on your website and replaces it with a China-compatible mapping alternative for visitors in China without changing your existing website. This happens as part of Chinafy's broader optimization process and doesn't require changes to your existing site code or a separate site build.

Don't get left behind.
Optimize your website for the world's fastest-growing consumer market. Start today, cancel anytime.
Make your website work in China
Fill out the form and one of our Chinafy team members will reach out to you within 1 business day to book an initial call or with a plan for next steps.
check30%-40% faster compared to using a CDN alone.
checkVerifiable results in just 2 weeks, instead of 1-2 years.
checkLittle to no action required from your IT teams.
"Chinafy has made it possible for us to be sure that our web visitors in China have the same good experience as all our other visitors in the rest of the world."
Michela Nalin Francek, Marketing Manager for Nolato
"Over 1 million engineers use SnapEDA each year all over the world. We were attracted to Chinafy's service because of how easy they made it to support the Chinese market."
Natasha Baker, CEO & Founder of SnapEDA
We are very happy with working with Chinafy. They went above and beyond to ensure we help MIT Professional Education deliver world-class online education in China.
Ignacio Cerro, CFO, Global Alumni for MIT Professional Education
"Consistency is crucial for us.
Chinafy fits the bill of what we were looking for."
Jonathan Rhodes, Marketing Technology Manager of Registrar Corp
"The process was super easy and I'm really glad we selected your team. The experience has been beyond my expectations."
Nicolas Duchesne-Lafoest, Product Marketing Manager 
"Chinafy went above and beyond to help me produce my event. I'm not sure I would have been successful without them. The client was elated that we managed to fulfill the request to live-stream into China so quickly."
Kevin Denham, Technical Director at ADM Productions
To start, please share a bit more about you.
Which website do you want to Chinafy?
Tell us your name?
What best describes your company role?
What's your Work Email Address?
What would you like to discuss?
Have a discount code?
By clicking 'Get Started', I also agree to Chinafy's Terms of Service & Privacy Policy.
close
Thanks for getting in touch!
One of our China experts will be in touch with you via email within the next 24 hours with

1 - Expected post-Chinafy results
2 - Your Custom Plan
3 - Next steps.

P.S. Make sure to check your promotions inbox in case our message lands there.

Please feel free to check out our case studies or blog in the meantime.
[[embed: get started form inline type]]

Related Stories

Load More
×

Notey will use the information you provide on this form to be in touch with you and to provide updates and marketing. Please let us know all the ways you would like to hear from us:

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at community@notey.com. We will treat your information with respect. For more information about our privacy practices please visit our website. By clicking below, you agree that we may process your information in accordance with these terms.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.