Specifying Location
Country code is ALWAYS required for all location-based requests, regardless of whether you use an address or coordinates.
Country Code (Required)
Country Code (Required)
The country code is the primary market identifier and is required for all requests.It corresponds to the country code used in the ISO 3166-1 alpha-2 standard.To get the most up-to-date list of supported countries:
Address (Optional)
Address (Optional)
Prezio automatically geocodes addresses to coordinates using OpenStreetMap services.
Geocoding Process
- The API converts your address to coordinates using OpenStreetMap
- Validates that the geocoded location is within the specified country
- Uses the resulting coordinates to determine applicable tariffs
- Includes a confidence score in the response (higher is better)
Include street number, street name, city, and postal code for best geocoding results.
For address conversion debugging, you can use the OpenStreetMap UI.
For address conversion debugging, you can use the OpenStreetMap UI.
Coordinates (Optional)
Coordinates (Optional)
For precise location targeting, provide direct geographic coordinates.Both latitude and longitude must be provided together in decimal degrees (WGS84 coordinate system).
Location Data in Responses
API responses include the location data used for the request, allowing you to verify correct interpretation:
input_address
: The address you provided (if applicable)coordinates
: The exact coordinates used to determine pricingconfidence
: Geocoding confidence score (1-10, with 10 being highest)
Never provide both address and coordinates in the same request. Choose one method to specify location.
How Location Affects Pricing
Grid Operator
Your location determines which DSO (Distribution System Operator) serves your area, affecting grid costs.
Regional Tariffs
Organizations may have different tariffs for different geographic regions within the same country.
Local Taxes
Some electricity taxes and fees vary by municipality or region.
Example Requests
Location Best Practices
Use Exact Locations
Provide the exact address where electricity is consumed, not approximate locations, to ensure correct tariff assignment.
Handle Geocoding Errors
Implement error handling for cases where addresses cannot be geocoded or return low confidence scores.
Verify Country Codes
Double-check that you’re using the correct country code for your location to avoid empty results.
Check Data Availability
Not all locations have data in the sandbox environment. Review our data availability guide for testing.
For most reliable results in production applications, we recommend caching the mapping between addresses and DSO service areas after initial lookups.