View Source ExMaps.Worker (ExMaps v1.1.3)

This module contains definition of Elixir Task which will be used for accessing the cache and calling Google API.

Summary

Functions

Returns calculated directions for specified coordinates and given options. Checks wether request has been already cached, if not it sends it to Google API and caches it with specific TTL.

Functions

Link to this function

get_results(coordinates, options)

View Source
@spec get_results(map(), Keyword.t()) :: map()

Returns calculated directions for specified coordinates and given options. Checks wether request has been already cached, if not it sends it to Google API and caches it with specific TTL.