Odoo VIETMAP integration

VIETMAP Connector

VIETMAP for Odoo 19: Vietnamese addresses on the map, road distance for every delivery, and delivery trips in a sensible order

What it does

Search v4 and Place v4 - Reverse v4 - New ward / province format - Route v3 for car, motorcycle, truck - Distance matrix - Delivery trips

VIETMAP knows Vietnamese streets, wards and the new two-level administrative map. This module calls it from Odoo: a contact's address becomes a point on the map with one button, every delivery gets its road distance and drive time from the warehouse, and a delivery trip puts its stops in a sensible order and tells you how far the driver goes. Calls are made from the Odoo server only, and only when someone presses a button.

Who it is for

  • Shops in Vietnam that deliver by motorbike. Before a rider leaves, you want to know how far the order really goes on the road. Compute Road Route on a delivery asks VIETMAP for the motorcycle, car or truck route from the warehouse address and stores the km and minutes on the transfer.
  • Distributors planning a morning delivery run. Put the day's deliveries or contacts into a delivery trip and Sort Stops And Plan orders them by nearest next stop from one distance matrix call, then works out the total distance and drive time for the whole run.
  • Teams cleaning up customer addresses after the ward and province merger. Locate With VIETMAP turns a contact's street and city into coordinates and shows the address VIETMAP found, with the ward and province or city in the new two-level format, next to the address you typed.
  • Companies that send goods by truck. Truck routes send the truck weight you set on the account, so VIETMAP can pick roads that allow that vehicle.

Features

Locate a contactSearch v4 on the address, Place v4 on the best hit: latitude and longitude in the contact
New address formatthe ward and province / city as VIETMAP returns them in the 2-level format
Address at a pointReverse v4 shows the address VIETMAP knows at the contact's coordinates
Road distance per deliveryRoute v3 from the warehouse to the delivery address, in km and minutes
Car, motorcycle or truckper delivery or by default; trucks send their weight, as VIETMAP asks
Delivery tripsa start address and stops from deliveries or contacts
Stops in orderone distance matrix, then nearest next stop by drive time, with km and minutes per leg
Trip totalRoute v3 through the stops in order, back to the start or one way
Key kept safethe API key stays on the server and is removed from every error and log line
API logevery call with its status, user and trip

Setting it up

  1. Get an API key from the VIETMAP console. Each search, place, route and matrix call is counted against your VIETMAP plan.
  2. Install the module. It needs only Inventory and adds an Inventory > VIETMAP menu. Give staff the VIETMAP User group under Settings > Users; the administrator already has VIETMAP Manager.
  3. Open Inventory > VIETMAP > VIETMAP Account, paste the API key, choose the default vehicle and truck weight, and press Test Connection.
  4. Open the contact of your warehouse address, go to the VIETMAP tab and press Locate With VIETMAP. Do the same for your customers.
  5. On a delivery, open the Additional Info tab and press Compute Road Route, or create a trip under Inventory > VIETMAP > Delivery Trips with a start address and stops.
  6. On the trip, press Sort Stops And Plan. You can move stops by hand and press Plan Route In This Order to get the new total.

VIETMAP Connector: questions

Will it overwrite the addresses of my contacts?

No. Locate fills only the latitude and longitude and shows the VIETMAP address, ward, province or city and place ID beside your own address fields.

Is the sorted stop order the shortest route?

Not necessarily. It picks the nearest next stop by drive time each time, which gives a sensible order but isn't a full route optimisation. The matrix used for sorting is the car or motorcycle one, even on a truck trip.

Is there a map view of the trip?

No. The trip shows each stop with its km and minutes from the previous stop and the trip total; it doesn't draw the route on a map.

Can the browser see my API key?

No. Calls are made from the Odoo server only when someone presses a button, and the key is removed from error messages and from Inventory > VIETMAP > VIETMAP Log.

Does it work on Community and with several companies?

Yes. It depends only on stock and mail. Each company has its own VIETMAP account, and record rules keep trips, stops, accounts and logs inside their company.