Location lookup integration

Eircode Lookup Demo

Address lookup, map coordinates and distance checks for online ordering

Lookup Address + Lat/Lng
Map Layer Leaflet

The Brief

This demo shows how an Eircode lookup can support online ordering, booking, delivery and location-specific services. A customer enters an Eircode, the system returns a verified address and coordinates, displays the point on a Leaflet map, and calculates straight-line distance from Dublin city center.

Problem

Online order forms often collect free-text addresses that are incomplete, mistyped or outside the service area. Staff then have to check locations manually, quote delivery or travel charges by hand, and follow up with customers before an order can move forward.

Solution

We built a lightweight React and Leaflet demo around a PHP query_address.php endpoint. The lookup validates the Eircode format, resolves the address, returns latitude and longitude where available, maps the result and calculates distance from a fixed business base.

Online Ordering Benefit

The lookup can sit before checkout or quote submission. It helps confirm that the delivery address is real, lets the site decide whether the customer is inside the service area, and gives the business enough location data to calculate delivery, travel or callout rules.

Location-Specific Services

The same pattern can power local availability messages, area-based pricing, branch routing, delivery zones, installer coverage, appointment rules and map links for dispatch teams. The customer gets a cleaner booking flow and staff get a usable location record.

Map and Distance Layer

Leaflet provides a fast visual check for the resolved Eircode. The demo plots Dublin city center and the customer location, draws a route line and calculates distance in kilometres, which can be replaced with a business depot, warehouse or service team base.

Case Study Angle

For a delivery, trades or booking website, this reduces back-and-forth before the job is accepted. Customers can be told immediately whether the service is available in their area, while admins receive address, coordinates and distance data in the order or lead record.

Outcome

The result is a practical location workflow that can be added to ecommerce checkouts, quote forms, lead forms, site-visit bookings or job-management systems. It makes ordering more accurate and gives the business a stronger basis for service-area decisions.

Input Eircode
Output Address + Coordinates
Decision Service Area
Use Case Ordering + Booking

Key Features

The demo is intentionally simple: one lookup field, one result panel, one map and the operational data an ordering flow needs.

Eircode validation

Checks the Eircode shape before sending the lookup request, reducing bad submissions early.

Verified address return

Returns a structured address that can be saved with an order, quote, booking or lead.

Latitude and longitude

Uses coordinates for map display, dispatch context and location-aware business rules.

Leaflet map display

Shows the customer location on an interactive map without making the form feel heavy.

Distance calculation

Calculates straight-line distance from Dublin city center, or from any depot or office base.

Service-area decisions

Supports delivery zones, callout ranges, installer coverage and area availability messages.

Online order gating

Can prevent unsupported addresses from reaching payment or submitting as confirmed orders.

Admin-ready location data

Gives staff address, coordinates and distance data for follow-up, routing and reporting.

Workflow

A typical ordering or booking flow can use the lookup before the customer reaches payment or final submission.

Customer enters Eircode

The form normalises the input and blocks clearly invalid values before lookup.

Address is resolved

The endpoint returns the matching address and coordinates where available.

Map confirms location

The customer and admin can see the location plotted against the business base.

Distance is calculated

The site calculates distance from Dublin city center, a depot or a service team base.

Order flow adapts

The page can show delivery pricing, service availability, nearest branch or manual review.

Service Deliverables

This can be delivered as a standalone website add-on or as part of a wider booking, checkout or CRM workflow.

  • React lookup interface
  • PHP query_address.php endpoint
  • Eircode format validation
  • Address and coordinate response handling
  • Leaflet map integration
  • Distance calculation from a chosen base point
  • Service-area or delivery-zone rule hooks
  • Checkout, quote form or booking form integration
  • Admin record fields for address, coordinates and distance
  • Testing and handover notes

Not getting enquiries?

Book a Free Website Review

Need a fixed price?

Get a Website Quote

Need a developer partner?

Become a Partner

GET IN TOUCH

Phone

085 839 2935

Email

websites.dublin@gmail.com

Harbour view,
Sallins,
Co.Kildare,
Ireland,