package mlgpx
Library and CLI for parsing and generating GPS Exchange (GPX) formats
Install
dune-project
Dependency
Authors
Maintainers
Sources
mlgpx-1.0.0.tbz
md5=5342bb7e601273245a9fe263e5a08770
sha512=cd73b16e988b3ed3cc427a6c6c6d6c9c745adb1eb7efaae3c34e8d006e9c03d9f9d2616cd4118564bd9873903969d3e4053b585e79dbd3e3e7d0f541e2faac83
doc/mlgpx.core/Gpx/Waypoint/index.html
Module Gpx.Waypoint
Source
GPS waypoint data and fix types
The Waypoint
module handles individual GPS points, including waypoints, route points, and track points. Each waypoint contains:
- Required coordinates (latitude/longitude)
- Optional elevation in meters above mean sea level
- Optional timestamp
- Optional metadata like name, description, symbol
- Optional GPS quality information (accuracy, satellite count, etc.)
Fix types indicate GPS quality: none, 2D, 3D, DGPS, or PPS.
Waypoint data and GPS fix types
GPS fix types as defined in GPX spec
Source
type t = {
lat : Coordinate.latitude;
lon : Coordinate.longitude;
ele : float option;
time : Ptime.t option;
magvar : Coordinate.degrees option;
geoidheight : float option;
name : string option;
cmt : string option;
desc : string option;
src : string option;
links : Link.t list;
sym : string option;
type_ : string option;
fix : fix_type option;
sat : int option;
hdop : float option;
vdop : float option;
pdop : float option;
ageofdgpsdata : float option;
dgpsid : int option;
extensions : Extension.t list;
}
Main waypoint type - shared by waypoints, route points, track points
Fix Type Operations
Pretty print fix type
Waypoint Operations
Create waypoint with required coordinates
Source
val make_from_floats :
lat:float ->
lon:float ->
?name:string ->
?desc:string ->
unit ->
(t, string) result
Create waypoint from float coordinates with validation
Get coordinate pair
Get latitude
Get longitude
Get magnetic variation
Get extensions
Functional operations for building waypoints
Update magnetic variation
Add extensions
Pretty print waypoint
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page