Docs for AI agents¶
The VIETMAP Maps API reference is available in plain text for Claude, ChatGPT, Cursor, GitHub Copilot, and other AI assistants. Both the link and downloadable file have the same content and are updated alongside the documentation.
Full reference¶
Covers every API: endpoints, parameters, request and response examples, errors and transaction cost.
VIETMAP Maps API, full reference
Search and geocoding, routing with toll costs, Matrix, TSP and VRP, address migration, map display and SDKs, keys and pricing.
Sample prompt. Replace the text in < > with the feature to build:
Read https://maps.vietmap.vn/docs/llms-full.txt before writing any code.
Task: <feature to build, e.g. an address field with suggestions that returns coordinates>.
Use only the endpoints and parameters documented in that file.
Call the VIETMAP APIs from the server and read the key from the VIETMAP_API_KEY environment variable.
Guides by API group¶
Each file covers one group of APIs, for integrations that use part of the platform or need a smaller context. The full reference contains all six files.
Search & Geocoding
Autocomplete v4, Geocode v4, Place v4, Reverse v4, old and new address formats
search-geocoding.txtLogistics
Matrix v4, TSP v4, VRP with capacity and time windows, Isochrone, Geofencing
logistics.txtMap Display
Map tiles and styles, Map Editor, traffic layer, Static Map, Web and mobile SDKs
map-display.txtConsole, keys & pricing
Registration, services key and tilemap key, quotas, how requests become transactions
console.txtLink or file¶
| Assistant | With the link | With the file |
|---|---|---|
| Coding tools: Claude Code, Cursor, GitHub Copilot | Add the link to the prompt. The tool fetches the content. | Save the file in the repository, for example docs/vietmap.txt, and reference the path in the prompt. |
| Chat assistants: ChatGPT, Claude, Gemini | Paste the link into the message. | Attach the file to the message. |
The link always points to the latest version. Use the file in environments without internet access, or to keep a fixed version alongside the code.
Other formats¶
- llms.txt: index of the documentation in the llms.txt format, with a short description of each page.
- Plain-text version of any page: add
index.txtto the page URL, for examplehttps://maps.vietmap.vn/docs/map-api/route-version/route-v4/index.txt. - OpenAPI 3.1 (JSON): schema of the Map APIs, for ChatGPT Actions, Postman and client generators.
- Postman collection: sample requests with parameters filled in.
Every request requires an API key. Sign up for VIETMAP Console to get a key and 60,000 free transactions, about 3,000,000 VND.