v0.2.0
Breaking Changes
- The tuple fields for latitude and longitude from the location struct are no longer public. Instead, getters have been added named
latitude()
andlongitude()
let loc = Location::new(123.012, 45.68);
// Previously
let lat = loc.0;
let lon = loc.1;
// Now
let lat = loc.latitude()
let lon = loc.longitude()
Changes
- Added haversine distance
- Improved documentation, examples and README.