How to Convert an Address to Latitude and Longitude
Use forward geocoding to turn delivery locations and other address records into coordinates for maps and operational software.
Try it now: Forward geocoding: address to coordinates
What is forward geocoding?
Forward geocoding is the process of converting a human-readable address or place name into geographic coordinates. The result is typically a latitude and longitude pair that can be used in mapping applications, navigation systems and geographic databases.
For example, a delivery system can geocode an address record to obtain a point for mapping or downstream operational workflows. Review the match before associating it with a delivery; coordinates alone do not confirm that an address is valid or identify an exact entrance.
Forward geocoding is the opposite of reverse geocoding:
- Forward geocoding: Address or place name to latitude and longitude.
- Reverse geocoding: Latitude and longitude to a human-readable address or place name.
You can use the forward geocoding tool to convert addresses and place names into geographic coordinates. If you already have coordinates and need to identify the corresponding address, use the reverse geocoding tool.
Worked example
Imagine you have the following address:
Rådhuspladsen 1, Copenhagen, Denmark
A forward geocoding service searches its geographic data for a matching location and returns coordinates representing the matched address.
A simplified example of a coordinate result could look like this:
{
"latitude": 55.6761,
"longitude": 12.5683
}
These values are illustrative rather than an authoritative geocoding result for the example address. The actual coordinates depend on the geocoding provider and the location matched.
The resulting coordinates can be used in a map, stored in a database or passed to another geographic service.
Step-by-step geocoding
- Open the forward geocoding tool.
- Enter the street address, city or place name you want to locate.
- Include the country or other geographic context when the location name is ambiguous.
- Submit the search.
- Review the returned location and its coordinates.
- Copy the latitude and longitude for use in your application or geographic dataset.
If you are processing several addresses, consider whether an API-based workflow is more suitable than entering addresses individually. The current API provides forward geocoding for an address or place-name query, but does not expose a batch-geocoding operation; do not confuse this with batch coordinate conversion.
Geocoding accuracy
Geocoding results are not always equally precise. The accuracy depends on the quality of the underlying geographic database, the completeness of the input address and the type of location being searched.
A geocoding service may return a result representing:
- Building or address level: A specific street address or building.
- Street level: A location along a street when an exact address cannot be identified.
- Locality level: A city, town or village.
- Administrative area: A region, district or country.
- Point of interest: A named location such as a station, airport or business.
Always inspect the returned result before using it for applications where precise positioning matters. A coordinate representing a city centre is not interchangeable with the location of a specific building.
Common applications
Forward geocoding is useful in many industries where addresses and geographic coordinates need to be connected.
- Transport and logistics: Convert delivery addresses into coordinates for route planning and fleet management.
- Retail: Locate customers and analyze geographic demand around stores.
- Real estate: Associate property addresses with geographic locations for mapping and spatial analysis.
- Emergency services: Convert reported addresses into coordinates that can be used by dispatch systems.
- Business intelligence: Enrich customer and operational datasets with geographic information.
- Web applications: Allow users to search for an address and display the resulting location on a map.
For example, a transport company can geocode a list of customer addresses and store the resulting coordinates alongside its existing customer records. These coordinates can then be used for geographic clustering, delivery-zone analysis and distance calculations.
Common errors
- Ambiguous place names. Several locations can share the same name. Include the country, region or city to narrow down the search.
- Incomplete addresses. Missing street numbers, postal codes or locality information can result in less precise matches.
- Spelling mistakes. Incorrect street or place names can prevent a service from finding the intended location.
- Unexpected coordinates. Check the returned location instead of assuming that the first result is always correct.
- Coordinate order. When transferring results into GeoJSON, remember that coordinates must be written as longitude followed by latitude.
- Different address conventions. Address formats and available geographic data vary between countries. A format that works well in one country may require additional context in another.
Once you have obtained coordinates, you can use them in the GeoJSON viewer to visualize the resulting locations on a map.
If you need to convert the coordinates into another geographic reference format, such as UTM, DMS or MGRS, use the coordinate converter.
For software integrations, the Geospatial Toolbox API exposes a forward-geocoding operation that returns GeoJSON from an address or place query. Review the API documentation for its exact parameters and response schema. For coordinates that already exist, see reverse geocoding or coordinate formats.
Tools used in this guide
- Forward geocoding: address to coordinates
- Reverse geocoding: coordinates to address
- Interactive GeoJSON viewer and editor