Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction: Update acquisition algorithm to define data types and handle cached positions #153

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented May 13, 2024

Enhance the "Acquire a Position" algorithm to include explicit data type definitions and unit specifications for each piece of acquired position data, aligning with the [[WGS84]] coordinate system standards. This update ensures each parameter (latitude, longitude, altitude, etc.) is clearly defined at the point of data acquisition.

Additionally, refine the handling of cached position data within the algorithm. Introduce conditional logic to terminate the algorithm early if a valid cached position is used, preventing unnecessary data acquisition steps. This change improves efficiency and clarity in the geolocation process, ensuring that position data is handled correctly based on its freshness and accuracy requirements.

Key Changes:

  • Define explicit data types and units for latitude, longitude, altitude, accuracy, altitude accuracy, speed, and heading.
  • Implement conditional checks to skip unnecessary acquisition steps when using cached positions.
  • Update parameters passed to the GeolocationPosition constructor to include all newly defined data points.

Closes #137

This change is editorial and just contains corrections.


Preview | Diff

@marcoscaceres
Copy link
Member Author

@jyasskin, can you check this also to make sure the caching issue is addressed?

@marcoscaceres marcoscaceres changed the title Update geolocation acquisition algorithm to explicitly define data types and handle cached positions Correction: Update geolocation acquisition algorithm to explicitly define data types and handle cached positions May 13, 2024
@marcoscaceres marcoscaceres changed the title Correction: Update geolocation acquisition algorithm to explicitly define data types and handle cached positions Correction: Update acquisition algorithm to define data types and handle cached positions May 13, 2024
@marcoscaceres
Copy link
Member Author

marcoscaceres commented May 14, 2024

@reillyeon, I relocated your original corrections to where the system position is acquired. I think they make more sense there, and are then passed to the GeolocationPosition constructor.

Copy link
Member

@jyasskin jyasskin left a comment

Choose a reason for hiding this comment

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

This looks sufficient to fix #137 as-is, thanks, but I think it could be even cleaner:

index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
@marcoscaceres
Copy link
Member Author

@reillyeon, just a heads up, I'm going to rebase this to deal with the merge conflicts.

Apologies in advance for the lost commits! Hope that's ok.

…dle cached positions

Enhance the "Acquire a Position" algorithm to include explicit data type definitions and unit specifications for each piece of acquired position data, aligning with the [[WGS84]] coordinate system standards. This update ensures each parameter (latitude, longitude, altitude, etc.) is clearly defined at the point of data acquisition.

Additionally, refine the handling of cached position data within the algorithm. Introduce conditional logic to terminate the algorithm early if a valid cached position is used, preventing unnecessary data acquisition steps. This change improves efficiency and clarity in the geolocation process, ensuring that position data is handled correctly based on its freshness and accuracy requirements.

Key Changes:
- Define explicit data types and units for latitude, longitude, altitude, accuracy, altitude accuracy, speed, and heading.
- Implement conditional checks to skip unnecessary acquisition steps when using cached positions.
- Update parameters passed to the `GeolocationPosition` constructor to include all newly defined data points.
@marcoscaceres
Copy link
Member Author

@jyasskin, I added the definitions for each type of data, not just the type.

@reillyeon, can you check the definitions also to see if they make sense?

index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
index.html Outdated Show resolved Hide resolved
marcoscaceres and others added 5 commits June 5, 2024 08:42
Co-authored-by: Jeffrey Yasskin <jyasskin@gmail.com>
Co-authored-by: Jeffrey Yasskin <jyasskin@gmail.com>
Co-authored-by: Jeffrey Yasskin <jyasskin@gmail.com>
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.

Position data isn't passed into 'new GeolocationPosition'
2 participants