-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
465 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI | ||
name: test | ||
on: | ||
push: | ||
schedule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
# jgd | ||
|
||
Rust で日本の測地系を変換するライブラリ。 | ||
[![crates.io](https://img.shields.io/crates/v/jgd.svg)](https://crates.io/crates/jgd) | ||
|
||
## Getting started | ||
Transform geodetic datums used in Japan. | ||
|
||
[![crates.io](https://img.shields.io/crates/v/jgd.svg)](https://crates.io/crates/jgd) | ||
## Getting started | ||
|
||
```shell | ||
```sh | ||
cargo add jgd | ||
``` | ||
|
||
## Examples | ||
|
||
旧日本測地系から世界測地系に変換する。 | ||
```rs | ||
use jgd::{LatLon, Tokyo}; | ||
|
||
```rust | ||
let (lat, lon) = jgd::from_tokyo(35.0, 135.0) | ||
let LatLon(lat, lon) = Tokyo::new(LatLon(35.0, 135.0)) | ||
.to_jgd2000() | ||
.to_jgd2011() | ||
.into(); | ||
.degrees(); | ||
``` | ||
|
||
## [API documentation](https://docs.rs/jgd/) | ||
|
||
[![docs.rs](https://img.shields.io/badge/_-docs.rs-slategray?logo=docsdotrs)](https://docs.rs/jgd/) | ||
|
||
## [MIT license](LICENSE.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unstable_features = true | ||
format_code_in_doc_comments = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.