Skip to content

Select previous address value instead of coordinates value#1694

Open
AussieTraccar wants to merge 2 commits intotraccar:masterfrom
AussieTraccar:show_address
Open

Select previous address value instead of coordinates value#1694
AussieTraccar wants to merge 2 commits intotraccar:masterfrom
AussieTraccar:show_address

Conversation

@AussieTraccar
Copy link

Purpose: The embedded address link throughout the Traccar UI was updated in commit #bb3756e to display location coordinates instead of 'Show Address' text. Some users may find the coordinates information confusing, preferring the original wording instead.

Solution: This PR adds a server-wide or per user configuration attribute to override the default address link behavior, for backwards compatibility and improved user experience.

@tananaev
Copy link
Member

tananaev commented Mar 4, 2026

How about we just keep label in web and export coordinates?

Copy link
Author

@AussieTraccar AussieTraccar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be more inline with your requirements?

if (addressEnabled) {
return (
<Link href="#" onClick={showAddress}>
{coordinates}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still use coordinates somewhere?

Copy link
Author

@AussieTraccar AussieTraccar Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this a catch-all for rare cases that the geocoder is either disabled geocoder.enable = false or unavailable, it returns coordinates by default so that there won't be an empty value for address?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we should probably move below if (addressEnabled), right? There's no need to do formatting if we know we won't use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants