lustre_kakaomap/services/geocoder
Geocoding service for KakaoMap.
Provides address search, reverse geocoding (coord to address/region),
and coordinate transformation using the KakaoMap Services API.
Requires &libraries=services in the SDK script tag.
Types
A single result from an address search.
pub opaque type AddressResult
A single result from a coord-to-region-code lookup.
pub opaque type RegionResult
Values
pub fn address_position(result: AddressResult) -> coords.LatLng
Returns the position as a LatLng.
pub fn address_search(
address address: String,
handler handler: fn(status.SearchStatus, List(AddressResult)) -> msg,
) -> effect.Effect(msg)
Searches for addresses by query string.
pub fn coord2_address(
position position: coords.LatLng,
handler handler: fn(status.SearchStatus, String, String) -> msg,
) -> effect.Effect(msg)
Converts coordinates to a street address and road address.
pub fn coord2_region_code(
position position: coords.LatLng,
handler handler: fn(status.SearchStatus, List(RegionResult)) -> msg,
) -> effect.Effect(msg)
Converts coordinates to region codes.
pub fn region_address_name(result: RegionResult) -> String
Returns the region address name.
pub fn region_position(result: RegionResult) -> coords.LatLng
Returns the region position as a LatLng.
pub fn trans_coord(
position position: coords.LatLng,
from from: status.CoordSystem,
to to: status.CoordSystem,
handler handler: fn(status.SearchStatus, coords.LatLng) -> msg,
) -> effect.Effect(msg)
Transforms coordinates between different coordinate systems.