Class

MapGob

MapGob(apiKey)

MapGob Class Represents a client for interacting with the Map (Ministerio de Administración Pública) API, providing methods for retrieving open data. This class extends the FetchService class and focuses on accessing data related to various services using specified parameters and formats.

Full API specs: https://map.gob.do/api/datos_abiertos
Constructor

# new MapGob(apiKey)

Create an instance of OpenData service.
Parameters:
Name Type Description
apiKey string The API key for authentication.

View Source services/gob.do/map.js, line 15

Extends

  • FetchService

Methods

# datosAbiertos(param, value) → {Promise}

Retrieves fuel prices from the API based on the specified parameter and value.
Parameters:
Name Type Description
param string The parameter to filter the fuel prices by.
value string The value of the parameter to filter the fuel prices by.

View Source services/gob.do/map.js, line 30

A promise that resolves to the fetched fuel prices data.
Promise