ExDadata.Address (ExDadata v0.1.0) View Source

Entry point for address DaData API.

For more information see docs.

Link to this section Summary

Functions

Determine coordinates for the address.

Search addresses which are close to the coordinates.

Search address by any part of an address from the region to the house. Also, you can search by zip-code.

Link to this section Functions

Link to this function

geocode_address(client, data)

View Source

Determine coordinates for the address.

See documentation for more information.

Example

ExDadata.Address.geocode_address(client, ["мск сухонска 11/-89"])
Link to this function

geolocate_address(client, data)

View Source

Search addresses which are close to the coordinates.

See documentation for more info.

Example

ExDadata.Address.geolocate_address(client, %{lat: 55.601983, lon: 37.359486})
Link to this function

suggest_address(client, data)

View Source

Search address by any part of an address from the region to the house. Also, you can search by zip-code.

See documentation for more info.

Example

ExDadata.Address.suggest_address(client, %{query: "москва хабар"})