LibLatLon.Info.format

You're seeing just the function format, go back to LibLatLon.Info module for more information.

Specs

format(t(), binary()) :: binary()

Formats the String.t representation of this struct according to the format given.

Second parameter format might include %{field} inclusions which will be interpolated in the result with real values.

Examples

iex> info = LibLatLon.lookup({42, 3.14159265}, LibLatLon.Providers.Dummy)
iex> LibLatLon.Info.format(info, "⚑ %{country}, %{city}, %{postcode}.")
"⚑ España, Barcelona, 08021."