• GEOCODING
  • REVERSE
  • DATA
  • HUMAN

How to convert addresses to coordinates with your AI

Connect the Baidu Map Web Service API to your agent. Once linked, your AI handles the heavy lifting of turning text addresses into map points.

Ask AI about this page

Short answer

How do I turn street addresses into GPS coordinates?

Your AI uses the geocoding tool to translate a physical address into latitude and longitude. You'll get exact map points from text strings. This breakdown shows the specific outcomes you'll get.

Where your data lands

The results of your request

The AI processes your location data into these specific outputs.

GEOCODING

Coordinate pairs

The AI converts text addresses into latitude and longitude. You get clean numbers ready for any mapping software.

REVERSE

Address lookups

The AI takes coordinates and finds the nearest physical street address. This helps you label points on a map with real locations.

DATA

Structured lists

Your AI can batch process lists from a spreadsheet or text file. You end up with a organized list of locations.

HUMAN

Manual verification

If an address is too vague or misspelled, the AI flags it. You'll need to step in to fix typos or clarify the location.

The workflow

What your AI does when a location arrives.

The AI acts as the bridge between your text and the Baidu Map database.

  1. Parse the address

    Your AI reads the raw text you provide to identify the street, city, and district.

    geocoding
  2. Fetch coordinates

    The agent calls the API to find the exact latitude and longitude for that specific spot.

    geocoding
  3. Verify location

    The AI checks the coordinates against the address to ensure they actually match the intended place.

    reverse_geocoding
  4. Format output

    The agent organizes the results into a format you can actually use, like a CSV or a JSON object.

    geocodingreverse_geocoding

Try it

Copy these to start.

Use these prompts to kick off the task with your agent.

Starting points

Swap the bracketed text for your actual data, like a specific address or a file name.

Baidu Map Web Service API Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_EKhbzruxx5J5FsWsbrubGiToLcG3rJLORg58gn35/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Baidu Map Web Service API capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "baidu-map-web-service-api-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_EKhbzruxx5J5FsWsbrubGiToLcG3rJLORg58gn35/mcp"
    }
  }
}
Copy into chat04
  • Geocode this list of addresses from my spreadsheet: [paste list or file name].

  • Find the latitude and longitude for [insert specific street address].

  • Take these coordinates [insert lat/long] and tell me what the physical address is.

  • Check my list of addresses in [filename.csv] and tell me if any of them can't be found.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Baidu Map Web Service API once, then ask.

One connection links your agent to the API. Your credentials stay encrypted, and you can start asking for coordinates immediately.

Connect Baidu Map Web Service API to your AI

FAQ

How this task behaves

  • 01

    Can the AI fix typos in my addresses automatically?

    No. The AI can identify when an address is invalid, but you have to provide the correct spelling for the tool to work.

  • 02

    Will the AI change my original data files?

    No. The AI only reads your data to perform the conversion. It doesn't overwrite your original files or databases.

  • 03

    Can it convert addresses outside of China?

    No. This specific connector uses Baidu Map data, which is optimized for locations within China.

  • 04

    Does the AI handle bulk uploads?

    Yes. You can provide a list or a file, and the AI will process the requests one by one using the geocoding tool.

  • 05

    What happens if the coordinates are slightly off?

    The AI provides the best match found by the API. If the result looks wrong, you'll need to manually verify it.

  • More questions about Baidu Map Web Service API? The Connector page answers them. See everything the Baidu Map Web Service API Connector can do

Connect Baidu Map Web Service API to Claude, Cursor, ChatGPT & more