Google Map It Button Link is broken when used a foreign language that uses comma as decimal separator #9704

Closed
opened 2025-12-29 21:21:20 +01:00 by adam · 0 comments
Owner

Originally created by @marcusyuri on GitHub (May 20, 2024).

Originally assigned to: @arthanson on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.2

Python Version

3.10

Steps to Reproduce

  1. Change user language preference to "Portuguese"
  2. Create or edit a site and fill the latitude / longitude with decimal values, separated by COMMA and save
  3. Press the 'map it' button

Expected Behavior

The google maps tab opens with the correct latitude / longitude spotted.

Observed Behavior

The google maps site will apper in a new tab, but with error message "O Google Maps não encontrou xxxx,yyyy".
This appears to be caused by Google Maps expecting the latitude / longitude values to use PERIOD decimal separator, instead of the COMMA separator. Maybe a simple conversion to US locale when generating the Map It button link can solve this.

Originally created by @marcusyuri on GitHub (May 20, 2024). Originally assigned to: @arthanson on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.2 ### Python Version 3.10 ### Steps to Reproduce 1. Change user language preference to "Portuguese" 2. Create or edit a site and fill the latitude / longitude with decimal values, separated by *COMMA* and save 3. Press the 'map it' button ### Expected Behavior The google maps tab opens with the correct latitude / longitude spotted. ### Observed Behavior The google maps site will apper in a new tab, but with error message "O Google Maps não encontrou xxxx,yyyy". This appears to be caused by Google Maps expecting the latitude / longitude values to use PERIOD decimal separator, instead of the COMMA separator. Maybe a simple conversion to US locale when generating the Map It button link can solve this.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:21:20 +01:00
adam closed this issue 2025-12-29 21:21:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9704