Skip to main content

Module domain

Module domain 

Source

Re-exports§

pub use model_identity::DistanceMetric;
pub use model_identity::EmbeddingDim;
pub use model_identity::ModelId;
pub use model_identity::ModelVersion;
pub use model_identity::RegistryError;
pub use model_identity::TaskKind;

Modules§

model_identity
Model-identity vocabulary — the names a task, a model, and a vector space are identified by.

Structs§

Bd09Coord
A raw BD-09 coordinate presented at the input edge. BD-09 is never a storable GpsDatum (metadata doc, Closed Enum Value Sets): it must be folded to GCJ-02 by fold_bd09_to_gcj02 before it can enter a sidecar, and is stored as GpsDatum::Gcj02.

Enums§

CaptureTzSource
DatumFoldError
Error folding a BD-09 input coordinate to GCJ-02 at the input edge.
DetectionMethod
GpsDatum
The coordinate datum a stored GPS fix is expressed in (closed enum per protocol_version; the code mirror of the Closed Enum Value Sets catalog).
ImportMode
MemberRole
StackType

Constants§

BD09_FOLD_BOUND_METRES
The documented accuracy bound on the BD-09 → GCJ-02 fold, in metres: a successful fold_bd09_to_gcj02 is sub-metre, far below consumer-GPS noise, which is why the bounded inverse is accepted rather than refusing BD-09 input at the edge.
BD09_FOLD_TOLERANCE_DEGREES
The residual the refinement must reach, in degrees, before a fold is accepted.

Functions§

fold_bd09_to_gcj02
Fold a BD-09 input coordinate to GCJ-02 at the input edge, returning the (lat, lon) to store under GpsDatum::Gcj02.