Migration Steps
From Google Maps to Beta MapsCreate your Beta account
Sign up at beta.vn. You'll receive your username and password for Basic Authentication instantly.
Map your endpoints
Replace Google's GET-based endpoints with Beta's POST-based equivalents. For example: Google's /maps/api/geocode/json becomes POST /v1/mapapi/geocode with a JSON body.
Test in staging
Run your existing test suite against Beta Maps. Verify geocoding accuracy, routing results, and places data. The response data is equivalent.
Deploy to production
Route production traffic through Beta Maps. Monitor via the real-time dashboard. Set up alerts for usage thresholds.
Endpoint Mapping
Google Maps → Beta Maps| Google Maps API | Beta Maps API | Method |
|---|---|---|
| GET /maps/api/directions/json | POST /v1/mapapi/direction | POST |
| GET /maps/api/geocode/json | POST /v1/mapapi/geocode | POST |
| GET /maps/api/place/textsearch/json | POST /v1/mapapi/textsearch | POST |
| GET /maps/api/place/nearbysearch/json | POST /v1/mapapi/nearbysearch | POST |
| GET /maps/api/place/details/json | POST /v1/mapapi/detail | POST |
| GET /maps/api/place/autocomplete/json | POST /v1/mapapi/search | POST |
Code Examples
Before & after# Before (Google Maps)
curl "https://maps.googleapis.com/maps/api/geocode/json?address=Saigon&key=YOUR_GOOGLE_KEY"
# After (Beta Maps)
curl -u YOUR_USERNAME:YOUR_PASSWORD \
-X POST https://api.beta.vn/v1/mapapi/geocode \
-H "Content-Type: application/json" \
-d '{"address": "Saigon"}'# Before (Google Maps)
curl "https://maps.googleapis.com/maps/api/directions/json?origin=10.8231,106.6297&destination=20.978,105.817&key=YOUR_GOOGLE_KEY"
# After (Beta Maps)
curl -u YOUR_USERNAME:YOUR_PASSWORD \
-X POST https://api.beta.vn/v1/mapapi/direction \
-H "Content-Type: application/json" \
-d '{"origin":{"lat":"10.8231","lng":"106.6297"},"destination":{"lat":"20.978","lng":"105.817"}}'// Before (Google Maps)
const res = await fetch(
`https://maps.googleapis.com/maps/api/geocode/json?address=Saigon&key=${API_KEY}`
);
// After (Beta Maps)
const res = await fetch("https://api.beta.vn/v1/mapapi/geocode", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Basic " + btoa(username + ":" + password)
},
body: JSON.stringify({ address: "Saigon" })
});# Before (Google Maps)
import requests
res = requests.get(
"https://maps.googleapis.com/maps/api/geocode/json",
params={"address": "Saigon", "key": API_KEY}
)
# After (Beta Maps)
res = requests.post(
"https://api.beta.vn/v1/mapapi/geocode",
json={"address": "Saigon"},
auth=(USERNAME, PASSWORD)
)Key Differences
What changes from Google MapsGoogle uses GET with query parameters. Beta uses POST with JSON body for all endpoints.
Google uses an API key as a query parameter. Beta uses HTTP Basic Auth (username:password) via the Authorization header.
Replace maps.googleapis.com/maps/api/ with api.beta.vn/v1/mapapi/.
Parameters move from URL query strings into a JSON request body. Coordinates use {lat, lng} objects.