Geocoding: real-time addresses and geographic coordinates via API

Converting a street address into an exact point on a map (and vice versa) is a core requirement for any software that handles geographic data. That’s exactly what Geocoding and Reverse Geocoding are for: with a simple API call, you can retrieve the geographic coordinates of a given address or, conversely, get the closest postal address to a specific point.
Geocoding is the process of converting the addresses of physical locations (e.g. Via Roma, 68, 47010 Premilcuore, FC) into precise geographic coordinates (e.g. latitude 43.981588, longitude 11.785949).
Without geocoding, it wouldn’t be possible to analyze and display the data of a given address on a map. That’s why it’s a key technique in industries such as logistics and real estate, as well as for spatial analysis, customer geolocation, data cleansing and business database enrichment. For example, it allows a courier to optimize delivery routes or a real estate agency to show all available properties in a given neighborhood on a map. All in real time.
Geocoding works by querying one or more street reference databases, cadastral maps, lists of house numbers and postal codes via API. The system then looks up (or calculates) the exact position of the house number and returns its geographic coordinates.
Reverse geocoding is the exact opposite: starting from a pair of geographic coordinates (latitude and longitude), it lets you trace back to a postal address, or at least to a human-readable description of a place.
Essential for satellite navigation apps that track a smartphone’s position in real time, this technique works by querying a map database to find the road segment, building or administrative boundary closest to a given geographic point.
It’s important to know that reverse geocoding is an estimate: the geocoder tries to find the location closest to the searched point, within a certain tolerance. As Google explains, it may also find no match at all (for example in remote areas, on the open sea or in unmapped areas): in that case, the search returns zero results.
Both geocoding and its reverse process essentially take place via API. Both are performed with a GET or POST request: for geocoding, you enter the postal address to be converted into coordinates (in the body of the POST request, or as a URL parameter for a GET request); for reverse geocoding, you enter the coordinates.
When you request geocoding, the response contains:
With reverse geocoding, on the other hand, you get the place ID and the details of the corresponding address.
Since no map database is infallible or equally up to date in every part of the world, relying on a single source can lead to errors or incomplete data. That’s why Openapi’s Geocoding and Reverse Geocoding service progressively queries three databases: HERE, Google Maps and OpenStreetMap, providing detailed information certified by the best providers. The service is available in over 196 countries and is designed to handle a high volume of requests per second.