Customer Geolocation Address - Map Pin at Checkout, Location Picker and Google Map Address
by Modvanta https://modvantaapps.tech/odoo-apps/customer-geolocation-address/$ 21.94

Customer Geolocation Address for Odoo 19
Your customers drop a pin on a map when they enter an address - at checkout and in My Account. The pin fills the street, city, zip, state and country, the exact latitude and longitude are saved on the address, and your team sees the map on the contact, the sale order and the delivery order.
Written and supported by Modvanta - modvantaapps@gmail.com
Odoo 19 Community and EnterpriseOpenStreetMap, no key neededGoogle Maps optionalCheckout and My AccountMap on delivery orders37 automated tests
What it does
In plain language Odoo 19 already stores a latitude and longitude on every contact, but only from the typed address, and the customer never sees a map. This module adds a map with a draggable pin to the address form of the checkout and of My Account. Clicking the map (or "Use my current location") moves the pin and fills the address fields for the customer. The exact pin is saved on that address, so the driver goes to the right entrance - not to the middle of the street. | Who it is for Shops that deliver themselves: food, flowers, furniture, groceries, water, gas. Countries and areas where street addresses are vague or missing. Companies with drivers who need the exact gate, building or entrance. Anyone who wants fewer failed deliveries and fewer "where are you?" calls. |
Key features
Every screenshot below was taken on Odoo 19 with this module installed.
FEATURE 1
What it adds over Odoo 19
Odoo 19 core keeps the latitude and longitude fields (Geolocation module) and can compute them from a typed address. The module adds everything the customer and your team see:
A map with a pin on the checkout address form and on the My Account address form
Reverse geocoding: the pin fills street, city, zip, state and country
The pin follows the address while the customer types it, until he places it himself
"Pinned by the customer" flag, and an option to refuse delivery addresses without a pin
Map with directions link on the contact, the sale order and the delivery order

FEATURE 2
Pin the delivery location at checkout
The map sits under the address fields. When the customer types the city and zip the pin jumps there; one click on the exact house fills the street for him.
OpenStreetMap tiles by default, no API key and no cost
Google Maps when your website has a Google Maps key
Drag the pin to adjust, "Remove pin" to start again

FEATURE 3
In My Account too
The same map is on the address form of the customer portal, so returning customers can fix their pin before the next order.
Works for the main address and for every delivery address
"Use my current location" on phones (HTTPS)

FEATURE 4
Pinned addresses are marked
The address cards of the checkout and of My Account show which addresses have a pin.

FEATURE 5
Map on the contact
The Partner Assignment tab of the contact shows the map with the pin, the "Pinned by the customer" badge, an Open Map link and a Directions link for Google Maps.

FEATURE 6
Map on the sale order
A Delivery Location tab on the sale order shows where the delivery address is.

FEATURE 7
Map on the delivery order
The warehouse and the driver see the pin on the delivery order, with one click to start Google Maps directions. Filter delivery orders by "Location Pinned by Customer".

How it works
| 1 | Install Install the module. It uses Odoo's Geolocation module for the coordinates. |
| 2 | Choose where Website -> Configuration -> Settings -> Customer Geolocation Address: map on checkout, on My Account, or both. |
| 3 | Pick the map OpenStreetMap needs nothing. For Google Maps, enter the Google Maps API key of the website and choose Google Maps. |
| 4 | Done Customers see the map on the next address they enter. Coordinates show on contacts, sale orders and delivery orders. |
Settings
| Map on Address Forms | Checkout address, My Account addresses, or both |
| Map | OpenStreetMap (no key) or Google Maps (website Google Maps key) |
| Pin Required | Optional, required for delivery addresses, or required for every address |
| Fill Address from Pin | Fill street, city, zip, state and country when the pin is placed |
| Move Pin with Address | Move the pin while the address is typed |
| Use My Location Button | Show the browser geolocation button |
| Map Height | Height of the map in pixels |
| Reverse geocoding provider | The Odoo setting Settings -> Integrations -> Geolocation: OpenStreetMap or Google (with its key) |
FAQ
Do I need a Google account or an API key?
No. The default map is OpenStreetMap with no key. Google Maps is only used if you choose it and enter a key.
Is the address filled in automatically?
Yes, when the customer places the pin, the module asks the geocoding service (OpenStreetMap Nominatim or Google) for the address of that point and fills the empty or different fields. The customer can still correct them.
Does "Use my current location" work everywhere?
Browsers only share the location on HTTPS pages, and only when the customer allows it. On HTTP the button explains this.
Where are the coordinates stored?
In the standard latitude and longitude fields of the address (res.partner), so other Odoo apps and reports can use them.
Can I make the pin mandatory?
Yes: for delivery addresses only, or for every address. The form then refuses to save without a pin.
Is there a limit on map requests?
The public OpenStreetMap service allows about one request per second. The module caches answers, waits between calls and limits each visitor to 30 lookups a minute. Busy shops can switch to Google.
Compatibility and support
Odoo 19 Community and Enterprise. Needs eCommerce (website_sale), Inventory (stock) and Geolocation (base_geolocalize). Map: OpenStreetMap via the bundled Leaflet library, or Google Maps.
Questions, a demo or a custom change: modvantaapps@gmail.com
AUTHOR Modvanta | INCLUDED Checkout, My Account, contact, sale order and delivery order maps |
Buy Now - $22Hire Us for Odoo Work
Written and supported by Modvanta - modvantaapps@gmail.com
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• eCommerce (website_sale) • Discuss (mail) • Website (website) • Invoicing (account) |
| Lines of code | 853 |
| Technical Name |
mdv_customer_geolocation_address |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/customer-geolocation-address/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module