Crates.io | lonlat |
lib.rs | lonlat |
version | 1.1.0 |
source | src |
created_at | 2020-09-14 14:35:25.346393 |
updated_at | 2020-09-19 00:02:44.190901 |
description | LonLat and LonLatAlt geo-location types and utils. |
homepage | |
repository | https://github.com/usagi/lonlat |
max_upload_size | |
id | 288629 |
size | 50,204 |
LonLat and LonLatAlt geo-location types and utils.
LonLat
and LonLatAlt
types; lon: Angle
, lat: Angle
(, alt: Length
)
.try_from
-> LonLat
-> .to_string_XXX
"42°49′36”N 140°48′41”E"
geo:42.826667,140.811389
"北緯42度49分36秒 東経140度48分41秒"
lonlat::dimensions::Angle
= measurement::Angle
+ extension trait
s
.as_string_radians
-> "2.4670994982555996 [rad]"
.as_string_degrees
-> "141.35438888888888°"
.as_string_minutes
-> "8481.263333333332’"
.as_string_seconds
-> "508875.79999999993”"
.as_string_dms_180
-> "+141°21’15.8”"
; "ja-JP" feature -> "141度21分15.8秒"
.as_string_dms_ns
-> "+141°21’15.8”N"
; "ja-JP" feature -> "北緯141度21分15.8秒"
.as_string_dms_90
-> "+41°21’15.8”"
; "ja-JP" feature -> "41度21分15.8秒"
.as_string_dms_ew
-> "+41°21’15.8”E"
; "ja-JP" feature -> "東経41度21分15.8秒"
Note: To enable "ja-JP"
features if you need additional Japanese features.