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_lat(result: AddressResult) -> Float

Returns the latitude.

pub fn address_lng(result: AddressResult) -> Float

Returns the longitude.

pub fn address_name(result: AddressResult) -> String

Returns the address name.

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 address_type(result: AddressResult) -> String

Returns the address type.

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_code(result: RegionResult) -> String

Returns the region code.

pub fn region_lat(result: RegionResult) -> Float

Returns the region latitude.

pub fn region_lng(result: RegionResult) -> Float

Returns the region longitude.

pub fn region_position(result: RegionResult) -> coords.LatLng

Returns the region position as a LatLng.

pub fn region_type(result: RegionResult) -> String

Returns the region type.

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.

Search Document