China Tech 101: Baidu Maps
Baidu Maps is one of China’s most popular and widely used mapping services.

PARENT

GROUP

PARENT COMPANY

CATEGORY

RELATED COMPANIES

WESTERN EQUIVALENTS

Blocked OUTSIDE OF CHINA?

ABOUT Baidu Maps

Baidu Maps is one of China’s most popular and widely used mapping services. It is developed specifically for the Chinese market, meaning the map data (including road networks, landmarks, and real-time traffic) is highly detailed and localized.

Often dubbed the "Google Maps of China," Baidu Maps offers powerful features for website owners looking to cater to Chinese visitors. If your business is targeting China’s massive online audience, integrating Baidu Maps is one way to show locations.

As of recent estimates (2024), Baidu Maps has over 275 million monthly active users.
Baidu Maps appeals to a broad audience who use the app for daily commuting, travel planning, and exploring local businesses.
Businesses specifically targeting Chinese visitors and have a use case such as providing location-based features like store locators, travel guides, or interactive maps. It’s particularly valuable for businesses needing precise, China-specific mapping that global tools can’t replicate.Available languages Baidu Maps – the official app as well as the API documentation – is only available in Simplified Chinese. For non-Chinese speakers, there are workaround options available that we’ll cover below.
Baidu Maps – the official app as well as the API documentation – is only available in Simplified Chinese.

GETTING STARTED

If you’re looking to leverage Baidu Maps for Chinese website visitors, there are currently two main options:

Baidu Maps iframe embed

Baidu Maps allows sharing individual locations via a URL, which you can embed in an iframe. This doesn’t require an API key so is easy to set up but comes with the following downsides:

Baidu Maps embed doesn’t offer the same interactivity as with an API.

Using a Baidu Maps URL in an iframe embed can result in poor user experience because Baidu’s URLs are not built for embeds.

For the best results, you may need to seek professional Baidu Maps expertise.

Here’s how you can get started with a Baidu Maps iframe embed:

Step 1: Find the location

Go to map.baidu.com in a browser and search for your location.

Zoom and adjust the view as desired.

Step 2: Get the share link

Click the "Share" (分享) button on the map interface.

Copy the short URL provided (e.g., http://j.map.baidu.com/abc123).

Step 3: Embed in an Iframe

Use the share link in an iframe:

iframe src="http://j.map.baidu.com/abc123" width="600" height="400" frameborder="0" allowfullscreen>

Baidu Maps API

Baidu Maps offers an API that lets developers embed interactive maps into websites. It’s a more feature-rich way to display locations, routes, or points of interest directly on your pages but comes with the following downsides:

To use Baidu Maps API, a Chinese business license and phone number is required.

Baidu Maps API can require significant development time to migrate Google Maps features.

Here’s how to get started with Baidu Maps API, with a focus on overcoming the language barrier and setting up a functional map for your site.

Step 1: Register as a Baidu Developer

You’ll need a Baidu developer account, which you can create via this link. The site is in Chinese, but non-speakers can use browser translation tools like Google Translate in browser to navigate. Note that Google Translate may not work if you are attempting to access this via a native Chinese browser from China, but there are alternative tools.

Step 2: Apply for an API key

Once registered, apply for an API key here. This requires basic info about your website, intended use, similar to Google’s Developer console if you’re familiar with that. The official documentation (lbsyun.baidu.com) is Chinese-only but you can use translation browser plug-ins to some extent.

Once your application is approved, you’ll receive your API key.

Step 3: Add the Baidu Map API script to your webpage

With your API key, you can integrate Baidu Maps into your site using a script like the following, replacing the x’s with your API key:

<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=xxxxxxxxxxxxxxxxxxxxxx">

Add the script to a container for the map and adjust the width and height in the CSS to fit your web design, as well as any further customizations such as adding a marker, info window (to show details when the marker is clicked) or map type (normal, satellite, hybrid).

The script URL and its parameters are documented on the Baidu Maps API page. Since it’s in Chinese, use a translation tool or search for English guides like those on GitHub or Stack Overflow.

Step 4: Verify access:

After adding the script, ensure your webpage is hosted on the domain you registered with Baidu (or use localhost for testing, if you allowed it in your application settings).

Open the page in a browser and check the console for errors (e.g., “Invalid AK” means the key is wrong or not authorized).

Additional considerations

Coordinates: If you’re starting with Google Maps coordinates (WGS-84), convert them to Baidu’s BD-09 system using a tool like this online converter and take offsets into account (e.g., +0.006 to longitude and latitude).

Using a third-party library: react-baidu-maps is a popular React library that simplifies integration with English documentation. It wraps the Baidu API, letting you add maps without wrestling with the original docs.

Translation tools: Use tools like DeepL or Google Translate to decode key sections of the official docs if you need specifics (e.g., customizing map styles) or collaborate with a native speaker to ensure labels and instructions make sense to your audience.

Tutorials: Look for English-language guides on platforms like Medium or GitHub. Search terms like “Baidu Maps API English tutorial” can unearth developer-written walkthroughs.

Hiring a developer: Beyond translation tools, a freelancer familiar with Baidu Maps can handle setup and maintenance.

Additional resources: Forums like Stack Overflow often have threads on Baidu Maps integration where you can search for English posts or ask your own question.

Business Requirements

To use Baidu Maps API, a Chinese business license and phone number is required.

[[embed:breadcrumbs_fix]]
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]]
×

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.