Arrow Up to go to top of page
Hero Image for Lob Deep Dives Blog PostWhat is a geocode? Definition, types, and uses | LobDirect Mail Q&A's
Community
July 29, 2026

What is a geocode? Definition, types, and uses | Lob

Share this post

A geocode can tell you where an address is located. But if the address is wrong, incomplete, outdated, or not deliverable, the coordinates are not as useful as they look.

That is the problem with relying on geocoding alone. Many tools can return latitude and longitude for an address string, but not every tool confirms whether that address is real, correctly formatted, or able to receive mail.

For teams using location data to route deliveries, segment audiences, plan campaigns, or send direct mail, that distinction matters. A geocode tied to a bad address can lead to wasted postage, failed deliveries, poor routing decisions, and inaccurate reporting.

A better workflow starts with address verification. When you verify, standardize, and correct the address first, the geocode you get back is tied to cleaner, more reliable address data.

What is a geocode?

A geocode is location data that represents a physical place. In most business workflows, that usually means latitude and longitude coordinates.

For example, an address might return a coordinate pair like this:

35.5466, -77.0522

Those coordinates can be used to map a location, analyze geographic patterns, support routing decisions, or connect customer records to a physical area.

Geocodes are useful because they make location data easier for systems to process. Instead of relying only on street names, cities, or ZIP Codes, teams can work with structured geographic data that supports mapping, routing, segmentation, and analysis.

Why address verification should come before geocoding

Geocoding and address verification are related, but they solve different problems.

Geocoding answers this question:

Where is this address located?

Address verification answers a different question:

Is this address valid, standardized, and deliverable?

That second question should come first when mail, delivery, customer communications, or operational decisions are involved.

A geocoding tool may be able to estimate a location from a messy input. But if the city is misspelled, the ZIP Code is wrong, the street direction is missing, or the address does not correspond to a deliverable location, the resulting geocode may point to the wrong place.

Address verification helps clean up the record first. It can correct formatting issues, standardize address components, and check whether the address is recognized for delivery. Lob’s address verification helps teams validate and standardize addresses before those records move into direct mail or other location-based workflows.

For a deeper look at why this matters, Lob’s guide to address quality checks for direct mail operations breaks down the checks that help make address data more usable before production.

How geocoding works

Geocodes generally come from two sources.

Physical GPS capture

Physical GPS capture records coordinates at the actual location. This can produce highly precise location data, but it is slow, expensive, and difficult to scale across large address lists.

This method can make sense for use cases where exact location matters, such as field operations, mapping assets, or location-specific service points. But it is not practical for most teams trying to enrich thousands or millions of customer addresses.

Interpolation

Interpolation estimates a location based on known points on a map.

For example, if a system knows the range of addresses on a street segment, it can estimate where a specific address falls between known endpoints. This method scales much more easily than physical capture, which is why it is widely used.

The tradeoff is precision. Interpolated geocodes can be useful for analysis, routing, and segmentation, but they may not always identify the exact building, entrance, or unit.

That is why it is important to understand the precision level of the geocode you are using.

Common levels of geocode precision

Not every geocode has the same level of accuracy. The right level depends on what you are trying to do with the data.

Rooftop geocode

A rooftop geocode points to a specific building or parcel. In some cases, it may get close to the actual entrance or delivery point.

This level of precision is useful for delivery planning, field service, customer location mapping, and other workflows where individual address accuracy matters.

ZIP+4 geocode

A ZIP+4 geocode represents a smaller delivery area than a standard ZIP Code. Depending on the location, that area may include a single building, a small group of addresses, or part of a route.

ZIP+4-level data can support logistics planning, local analysis, and audience segmentation. It is usually more useful than a broad ZIP Code-level geocode when you need a more focused view of where customers or mail recipients are located.

ZIP Code geocode

A ZIP Code geocode represents a much wider area. It can be useful for regional analysis, territory planning, and broad geographic reporting.

But ZIP Code-level geocodes are not precise enough for decisions tied to individual addresses. If you are routing deliveries, sending physical mail, or analyzing household-level response, you need more detailed address data.

What geocodes can help teams do

Geocodes help teams turn address records into usable location data.

Common use cases include:

  • Mapping customer locations
  • Segmenting audiences by geography
  • Identifying regional demand patterns
  • Planning service territories
  • Optimizing delivery or field routes
  • Supporting direct mail targeting
  • Analyzing market coverage
  • Comparing performance by location
  • Routing mail or shipments more efficiently
  • Identifying areas with high return rates or delivery issues

For marketers, geocodes can help reveal where high-value customers are clustered, which regions respond best to campaigns, and where local targeting may make sense.

For operations teams, geocodes can support routing, fulfillment, facility planning, and service coverage decisions.

For direct mail teams, geocodes can add a useful layer of location intelligence when combined with verified address data.

What is reverse geocoding?

Reverse geocoding works in the opposite direction. Instead of turning an address into coordinates, it turns coordinates into an address or approximate location.

For example, if a mobile app captures a user’s location, reverse geocoding can help translate that latitude and longitude into a street address or local area.

Reverse geocoding can support workflows such as:

  • Filling in address fields from location data
  • Confirming service areas
  • Triggering location-based messages
  • Supporting fraud or risk checks
  • Routing emergency or field services
  • Connecting GPS data to customer records

As with standard geocoding, the quality of the result depends on the quality of the data source and the precision required for the use case.

Why geocoding alone is not enough for direct mail

For direct mail, location data is only useful if the address can actually receive mail.

A geocode may tell you where a location appears to be on a map. It does not automatically tell you whether the address is deliverable, formatted correctly, current, or complete.

That is why address verification matters before geocoding enters the workflow.

For example, a record may have:

  • A misspelled city
  • A missing street direction
  • An incorrect ZIP Code
  • A missing apartment or suite number
  • A street name that exists in multiple cities
  • An address that looks valid but is not deliverable

If that record is geocoded without verification, the coordinates may look precise while still pointing to the wrong place.

For direct mail teams, this can create avoidable waste. The campaign may be routed, printed, and mailed based on flawed data. That can lead to returned mail, delayed delivery, inaccurate reporting, and missed customer communications.

Lob’s article on the difference between address verification and address validation explains why formatting an address and confirming deliverability are both important parts of a stronger address data workflow.

How Lob uses address data for direct mail workflows

Lob uses address data to help make direct mail more automated, reliable, and scalable.

Before mail moves into production, addresses can be standardized and verified so teams are not relying on incomplete or inconsistent records. That helps reduce waste, improve deliverability, and support downstream workflows like production routing, reporting, and campaign analysis.

Address data also supports Lob’s distributed print network. Instead of printing every mailpiece from one centralized location, Lob can route mail through a nationwide print delivery network designed to bring production closer to recipients when possible. Lob’s guide to nationwide direct mail fulfillment explains how distributed printing and routing help support more efficient mail operations.

When address verification, geocoding, and production routing work together, direct mail teams get more than a coordinate pair. They get cleaner address records that can support better targeting, fewer delivery issues, and more reliable campaign execution.

How to get better geocodes from address data

The best way to improve geocode quality is to improve address quality first.

Use this workflow:

  1. Collect complete address data
    Make sure required fields are captured at the point of entry, including apartment or suite numbers when needed.
  2. Standardize the address
    Format the address consistently so it follows postal standards and can be processed correctly.
  3. Verify deliverability
    Confirm that the address is recognized and able to receive mail.
  4. Apply geocoding
    Attach latitude and longitude or other location data after the address has been cleaned and verified.
  5. Use the right precision level
    Choose rooftop, ZIP+4, or ZIP Code-level data based on the decision you are making.
  6. Keep records current
    Address data changes over time. Run checks regularly, especially before major campaigns or operational decisions.

This approach helps prevent bad data from flowing into systems that depend on location accuracy.

Build location intelligence on verified address data

Geocodes can help teams map customers, analyze markets, route deliveries, and improve direct mail targeting. But the geocode is only as reliable as the address behind it.

When teams verify and standardize addresses first, they can use location data with more confidence. That means fewer bad records, fewer delivery problems, and better decisions across marketing, operations, and customer communications.

See how Lob helps teams verify addresses and build cleaner direct mail workflows by booking a demo.

Frequently asked questions about geocodes and address verification

FAQs

What is a geocode?

A geocode is location data that represents a physical place. It is often expressed as latitude and longitude coordinates and can be used for mapping, routing, segmentation, and location analysis.

How do you get a geocode from an address?

You get a geocode from an address by using a geocoding tool or API. For mail and delivery use cases, it is best to verify and standardize the address first so the geocode is tied to cleaner address data.

What is the difference between geocoding and address verification?

Geocoding identifies where an address is located. Address verification checks whether the address is valid, standardized, and deliverable. For direct mail, address verification should happen before geocoding.

What is reverse geocoding?

Reverse geocoding converts coordinates into an address or approximate location. It is often used when GPS data needs to be connected to a street address or local area.

Why does geocode precision matter?

Geocode precision determines how specific the location data is. Rooftop-level geocodes are more useful for individual address decisions, while ZIP Code-level geocodes are better for broad regional analysis.

Can geocoding help with direct mail?

Yes. Geocoding can support audience segmentation, geographic analysis, and production routing. But it should be used with verified address data so teams are not making decisions based on incorrect or undeliverable addresses.

Answered by:

Continue Reading