Constructor
# new MapGob(apiKey)
Create an instance of OpenData service.
Parameters:
Name | Type | Description |
---|---|---|
apiKey |
string
|
The API key for authentication. |
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. |
A promise that resolves to the fetched fuel prices data.
Promise