View Source ExMaps.Api (ExMaps v1.1.3)

Provides functions to interact with the Google Maps API.

This module is responsible for building request strings, sending requests to the Google Maps API, and parsing the responses.

Summary

Functions

Sends a request to the Google Maps API with the given coordinates and options, then parses and returns the response.

Functions

Link to this function

send_and_parse_request(coordinates, options)

View Source
@spec send_and_parse_request(
  map(),
  keyword()
) :: map()

Sends a request to the Google Maps API with the given coordinates and options, then parses and returns the response.

Parameters

  • coordinates: A map containing the coordinates for the request.
  • options: A keyword list of options to customize the request.

Examples

iex> ExMaps.Api.send_and_parse_request(%{origin: "Warsaw", destination: "Amsterdam"}, key: :value)
%{...}

Returns

  • A map representing the parsed response from the Google Maps API.