Skip to content

new example document for this.featureupdate/create location#77

Open
spatialash wants to merge 1 commit into
fulcrumapp:v2from
spatialash:task/new_metadata_docs
Open

new example document for this.featureupdate/create location#77
spatialash wants to merge 1 commit into
fulcrumapp:v2from
spatialash:task/new_metadata_docs

Conversation

@spatialash

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 26, 2026 12:01
@spatialash spatialash requested review from a team as code owners June 26, 2026 12:01

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

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
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