ExNominatim.Report (ExNominatim v3.0.0)

Copy Markdown View Source

Functions for reporting processed responses from the Nominatim API.

Summary

Functions

Given a map, a list of maps, or a struct, convert all keys from binaries to atoms. binary keys including dashes will have all their dashes replaced with underscores.

Convert the output of any of the endpoint functions to a more usable map.

Safely convert a binary string to an atom, replacing dashes with underscores. Passes through existing atoms unchanged.

Functions

atomize(s)

(since 1.1.0)

Given a map, a list of maps, or a struct, convert all keys from binaries to atoms. binary keys including dashes will have all their dashes replaced with underscores.

process(v)

(since 1.1.0)

Convert the output of any of the endpoint functions to a more usable map.

to_atom(s)

(since 1.1.0)

Safely convert a binary string to an atom, replacing dashes with underscores. Passes through existing atoms unchanged.