Skip to content

Changed contacts latitude and longitude fields to be null until parsed and set#269

Merged
zjs81 merged 1 commit into
mainfrom
dev-latLonFix
Mar 7, 2026
Merged

Changed contacts latitude and longitude fields to be null until parsed and set#269
zjs81 merged 1 commit into
mainfrom
dev-latLonFix

Conversation

@wel97459

@wel97459 wel97459 commented Mar 7, 2026

Copy link
Copy Markdown
Collaborator

This fixes contact parsing so contacts without the location data don't get set to 0,0.

Copilot AI review requested due to automatic review settings March 7, 2026 19:07
@wel97459 wel97459 changed the title Changed contacts latitude and longitude fields to be null until set Changed contacts latitude and longitude fields to be null until parsed and set Mar 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates contact import/parsing so that missing GPS coordinates remain unset (null) instead of defaulting to 0,0, preventing contacts without location data from appearing at the equator/prime meridian.

Changes:

  • Propagate latitude/longitude when importing a discovered contact into the main contacts list.
  • Change advert/contact parsing locals from double defaults (0.0) to nullable double? so absent location data stays null.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/connector/meshcore_connector.dart
@zjs81 zjs81 merged commit a1b77bb into main Mar 7, 2026
10 checks passed
@zjs81 zjs81 deleted the dev-latLonFix branch March 7, 2026 20:53
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.

3 participants