You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Electricity Maps API allows us to pass either a zone or lat and lon values when querying for power breakdown or grid intensity. Currently the gridAwarePower and gridAwareCO2e functions only use the zone (Alpha 2 ISO country code).
Desired state
It should be possible to pass in either the zone or lat and lon values into either of the functions.
The likeliest easy solution would be to accept these values in an options object passed into each function. An alternate approach would be to have a config step where the user defines which location type (zone/lat + lon) they want to use.
The text was updated successfully, but these errors were encountered:
fershad
changed the title
How to support latitude and longitude as inputs
Support latitude and longitude as inputs
Nov 30, 2024
The Electricity Maps API allows us to pass either a
zone
orlat
andlon
values when querying for power breakdown or grid intensity. Currently thegridAwarePower
andgridAwareCO2e
functions only use thezone
(Alpha 2 ISO country code).Desired state
It should be possible to pass in either the
zone
orlat
andlon
values into either of the functions.The likeliest easy solution would be to accept these values in an
options
object passed into each function. An alternate approach would be to have a config step where the user defines which location type (zone
/lat
+lon
) they want to use.The text was updated successfully, but these errors were encountered: