地理位置¶
Odoo provides geolocation integrations that allow you to locate contacts or places and generate routes on a map.
備註
The Map view is available by default. No configuration is required to access it.
Geolocate contacts and places¶
The Geolocation feature generates latitude and longitude coordinates to pinpoint locations. It can be used to:
Check employees』 check-in/out locations in the Attendances app;
Display the pickup location when using the pickup on-site delivery method;
Assign partners in the Contacts app;
Validate addresses with the Avatax address validation feature.
To enable the Geolocation feature, navigate to , scroll down to the Integrations section, and activate Geolocation. Then, in the API field, select either Open Street Map or Google Place Map.
OpenStreetMap is a free, open geographic database updated and maintained by volunteers. No additional configuration is required to use Open Street Map.
重要
OpenStreetMap data may not always be accurate. You can join the OpenStreetMap community to report and correct any issues you encounter.
The Google Places API provides detailed information about places, businesses, and points of interest. It supports location-based features like search, navigation, and recommendations.
重要
使用 Google Places API 可能需要`向 Google 付款 <https://mapsplatform.google.com/pricing/>`_。
要使用它,請選擇 Google Place Map 並輸入您的 API 金鑰。
其他資料
Map routes¶
Map routes are useful for providing itineraries and locations to field service technicians and delivery routes to drivers in a dispatch management system.
To create routes, follow these steps:
Create or sign in to a Mapbox account.
Go to the Access tokens page on Mapbox and copy your token to the clipboard.
重要
Mapbox displays secret tokens only once upon creation and hides them permanently after leaving the Access Token page. Make sure to save the token.
In Odoo, go to , scroll down to the Integrations section.
Under Map Routes, paste the Mapbox access token into the Token field.
按一下:guilabel:
儲存。