Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseResultに緯度経度の情報を含める #39

Closed
YuukiToriyama opened this issue Dec 9, 2023 · 4 comments
Closed

ParseResultに緯度経度の情報を含める #39

YuukiToriyama opened this issue Dec 9, 2023 · 4 comments

Comments

@YuukiToriyama
Copy link
Owner

町名までパースできた場合、geolonia/japanese-addressesからおおよその緯度経度情報が取得できるので、それを返り値に追加したい。

AsIs

struct ParseResult {
    address: Address,
    error: Error,
}

ToBe

struct ParseResult {
    address: Address,
    latlng: LatLng,
    error: Error,
}

struct LatLng {
    latitude: Option<f32>,
    longitude: Option<f32>,
}
@YuukiToriyama
Copy link
Owner Author

フラグでON/OFFを切り替えられるようにしておけば、テストコードを書く際に楽ができるかもしれない

@YuukiToriyama
Copy link
Owner Author

experimentalとして提供する

@YuukiToriyama
Copy link
Owner Author

フィーチャフラグを指定したときのみ

@YuukiToriyama
Copy link
Owner Author

YuukiToriyama commented Nov 2, 2024

v0.1.22で試験的だが導入した

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant