Geo Location
Type-Safe Geographic Coordinates
In One Line
Overview
Quick Start
// Create a location using clear, semantic constructors
var tokyo = new Wgs84Location(
Latitude.North(35.6762),
Longitude.East(139.6503)
);
// Alternative way using degrees (with automatic range validation)
var sydney = new Wgs84Location(
Latitude.Degrees(-33.8688), // South
Longitude.Degrees(151.2093) // East
);
Console.WriteLine(tokyo); // Output: (35.6762° N, 139.6503° E)
Console.WriteLine(sydney); // Output: (33.8688° S, 151.2093° E)Features
Common Usage
Creating Coordinates
Range Validation
Real-World Examples
Best Practices
Notes
Last updated