In order to be able to calculate the CO2 emissions of a route, place names need to be capable of being mapped to geocoordinates. A separate algorithm has been implemented for this purpose, which is capable of assigning this information as clearly as possible.
This mapping may not be unique, especially for place names that are more common. In this case, the service provides a warning that the geocoding was not unique.
Example:
Locations can be limited even further by entering a postcode and/or the 2-digit country ISO code (e.g. AT, DE, CH, ...) können Orte weiter eingeschränkt werden.
The postcode is always indicated before the place name with the ISO code at the end of the row in the following formats: ",AT" or "(AT)"
All available data for the specified location is transmitted as the result (in particular the latitude/longitude geocoordinates). The data is collated from different data sources, meaning that not all data is available in its entirety (e.g. “population”).
Geocoding is also available at the address level for Austria. Details on this can be found in the online documentation at https://cm.localhost.at/api-doc#W_III
In addition to a start and end point, the API key requires a further parameter in order to calculate the CO2 emissions: the type of transport. This can also be specified via the URL.
The following modes of transport are currently available:
The mapped “place names” mapped and the calculation results are returned as the result.
The most important parameters are:
As the location names are not always unique, the geocoordinates can also be indicated directly.
Example for "car":There are a number of optional parameters available (e.g. showing the waypoints for display in a map). Please see the online documentationfor details.