new example document for this.featureupdate/create location#77
Open
spatialash wants to merge 1 commit into
Open
new example document for this.featureupdate/create location#77spatialash wants to merge 1 commit into
spatialash wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.
Adds new calculation reference documentation pages for feature location and duration properties captured on the mobile device (creation-time and update-time snapshots/durations).
Changes:
- Added reference docs for
featureCreated*location and duration properties. - Added reference docs for
featureUpdated*location properties and edit duration properties. - Included examples and notes describing null/zero behavior and web vs mobile differences.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| docs/CALCULATIONS/calculations-reference/feature-updated-location-properties.md | New docs for update-time GPS snapshot properties (featureUpdated*) |
| docs/CALCULATIONS/calculations-reference/feature-duration-properties.md | New docs for edit session duration properties (featureUpdatedDuration, featureEditedDuration) |
| docs/CALCULATIONS/calculations-reference/feature-created-location-properties.md | New docs for creation-time GPS snapshot properties (featureCreated*) |
| docs/CALCULATIONS/calculations-reference/feature-created-duration.md | New docs for creation duration property (featureCreatedDuration) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+119
to
+121
| // Return the creation altitude | ||
| this.featureCreatedAltitude | ||
| // returns 27.770756908186286 |
|
|
||
| ## Returns | ||
|
|
||
| Number — Meters above sea level (WGS84 ellipsoid). Returns `null` if altitude data was unavailable at the time of creation, or if the feature was created from the web. |
|
|
||
| ## Returns | ||
|
|
||
| Number — Meters above sea level (WGS84 ellipsoid). Returns `null` if altitude data was unavailable at the time of the update, or if the feature was updated from the web. |
Comment on lines
+154
to
+160
| // Prevent saving if GPS accuracy at update is too low | ||
| ON('save-record', function(event) { | ||
| var accuracy = this.featureUpdatedAccuracy; | ||
| if (accuracy !== null && accuracy > 20) { | ||
| INVALID('GPS accuracy is too low (' + accuracy + 'm). Move to an open area and try again.'); | ||
| } | ||
| }); |
Comment on lines
+42
to
+46
| // Calculate distance moved between creation and last update (approximate, flat-earth) | ||
| var latDiff = this.featureUpdatedLatitude - this.featureCreatedLatitude; | ||
| var lonDiff = this.featureUpdatedLongitude - this.featureCreatedLongitude; | ||
| var approxMeters = Math.sqrt(latDiff * latDiff + lonDiff * lonDiff) * 111320; | ||
| SETRESULT(ROUND(approxMeters, 1) + 'm'); |
| @@ -0,0 +1,120 @@ | |||
| --- | |||
| title: Feature Duration Properties | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.