For developers
Location answers for dealer software, from one API key
GeoService turns ZIP codes, cities and addresses into coordinates, measures the distance between them, estimates vehicle shipping and finds dealerships near a point. Every call costs a stated number of credits, and you can try it in the Sandbox before you write a line of code.
- 17 lookups behind one key, each answering
{ ok, data } - ZIP answers come from a table of 40,979 ZIP codes the service holds itself
- Each call costs between 1 and 10 credits, listed on this page
- The Sandbox gives every signed-in user 10 free runs a day
- Your key is shown once, and only its hash is stored
For online stores on WooCommerce
Catch a wrong city or ZIP before the order ships
The Zip City Validator plugin checks the city a shopper types against their ZIP code while they are still on your checkout page. They are shown the city we expected and can fix it on the spot.
- Shoppers see the expected city as soon as they leave the field
- Warn only, or block the order: you choose, and warning is the default
- Checked again on your server when the order is placed
- If our service cannot be reached, checkout carries on
- Your API key stays on your server and never reaches the shopper's browser
The first 10 runs a day are free. After that each run uses the lookup's credits from your plan, as it does in the real Sandbox. The demo starts with 7 of today's free runs already used.
Type a city and a ZIP code, then click or tab out of the field. Try 43215 with Columbus, then with Dublin. Try 43085 with Worthington: the table files that ZIP under Columbus.
A ZIP outside the 27 sample rows shows the "could not verify" message here. The live table holds 40,979 ZIP codes.
How it works
Sign in
Use your Vinficient account. The dashboard, your keys and your usage all sit behind that one sign-in.
Try it in the Sandbox
Pick a lookup, fill in the fields and run it. The first 10 runs each day are free, and no key is needed.
Start the plan and create a key
The yearly plan carries 50,000 credits. With it active you can create named API keys. Each key is shown once, so copy it then.
Call the API
Send
POST /api/v1/...withAuthorization: Bearer gsk_...and a JSON body. Each call uses its credits, and the dashboard shows what was used.
Get an API key
Sign in to the GeoService dashboard, start the plan and create a key for your store.
Install the plugin
Add Zip City Validator to your WooCommerce site and open its settings page.
Paste two settings
Enter the GeoService address and your API key. The key is saved on your server and used only from there.
Choose warn or block
Leave "Hard Block" off to warn shoppers and let the order through, or turn it on to hold the order until the city matches.
Every lookup, and what it costs
What the plugin checks
All lookups are POST requests under /api/v1. A successful answer is { ok: true, data } and an error is { ok: false, error }.
One question, asked at the right moments: does the city the shopper typed match the city we hold for that ZIP code?
| Lookup | You send | You get | Credits |
|---|---|---|---|
| Coordinates | |||
geocode/zip | A ZIP code | Its centre point, city and state | 1 |
geocode/city | City and state | The city's centre point | 1 |
geocode/address | An address, in one line or in parts | Latitude, longitude and the matched name | 1 |
geocode/dealer | Dealer name, city and state | The dealer's point, or the city's centre when the name is not found | 1 |
resolve-coords | An address, with coordinates if you have them | Your coordinates when given, otherwise the address looked up | 1 |
| ZIP codes around a ZIP | |||
geocode/zip/nearby | A ZIP code and a radius in miles | ZIP codes within the radius, plus those in neighbouring counties, nearest first | 1 |
geocode/zip/adjacent | A ZIP code | Every ZIP code in the neighbouring counties | 1 |
| Distance and shipping | |||
haversine | Two coordinate pairs | Straight-line miles, to one decimal | 1 |
address-distance | Two places, as text | Both places located, and the straight-line miles between them | 2 |
estimate-shipping | A distance in miles | An estimated vehicle shipping cost in dollars | 3 |
| Dealers and places | |||
dealers/nearby | A point and a radius | Car dealers near the point, nearest first, and whether the answer came from the local index | 2 |
find-dealerships | City and state, with an optional brand | Dealerships around that city | 5 |
find-dealer-profiles | City and state, with an optional brand | Dealerships with profile details added where they can be found | 10 |
find-by-category | A map tag, city and state | Places with that OpenStreetMap tag near the city | 1 |
newspapers/nearby | A point and a radius | Newspaper offices near the point | 2 |
tv-stations/nearby | A point and a radius | TV and broadcast stations near the point | 2 |
| People | |||
demographics/density | A point or a ZIP code, and a radius up to 100 miles | Census population within the radius, and two density figures | 2 |
When the shopper leaves the field
The check runs when the shopper moves out of the city or ZIP field. A mismatch shows a message under the city label that names the city we expected.
Again when the order is placed
Your server repeats the check as the order comes in, so it still runs when a browser has scripts switched off.
Billing, and shipping when it differs
The billing address is always checked. The shipping address is checked too when the shopper chooses to ship somewhere else.
A ZIP we cannot place
When no city can be found for a ZIP, the shopper is asked to double-check it.
Warn or block
With "Hard Block" off, the shopper is warned and the order goes through. With it on, the Place order button stays off until the city matches.
Each check is one lookup
Every check is one geocode/zip call, which costs 1 credit. A checkout usually makes a few: one or two as the shopper types and one at the order.
Where the answers come from
Some answers come from data the service keeps itself, and some are asked of OpenStreetMap at the time of your call. Knowing which is which tells you how fast and how current an answer is.
The checkout check reads one table that the service keeps itself, so no outside provider sits between your shopper and the answer.
ZIP codes
A table of 40,979 US ZIP codes, each with a city, state, centre point and county. ZIP, nearby-ZIP and neighbouring-county lookups read it directly and make no outside request.
Car dealers
An index built from the OpenStreetMap extract of the United States. Dealers near a point are answered from it. When it has no data, the service asks OpenStreetMap's Overpass servers and tries three of them in turn.
Population
Census figures for 33,772 ZIP code areas: the 2023 five-year population survey joined to the 2024 land areas and centre points.
Addresses, cities and dealer names
These are looked up through OpenStreetMap's Nominatim search, limited to the United States and paced at about one request a second across the whole service.
The city we expect
Each ZIP has one city name in the table. The shopper's city is compared with it, ignoring upper and lower case.
Five-digit ZIP codes
The check runs for US ZIP codes. A postcode in any other format is left alone and the order continues as normal.
Your dashboard
Credits used and left, your keys, the Sandbox, alerts and a log of recent calls. Create and revoke a key below to see how keys behave.
The plugin needs one API key. You create it here, and this is where you see how many lookups your checkout has used.
| Lookup, last 30 days | Calls |
|---|---|
/api/v1/geocode/zip | 2,914 |
/api/v1/dealers/nearby | 386 |
/api/v1/haversine | 241 |
/api/v1/estimate-shipping | 77 |
| Name | Key | Created | Status |
|---|
The Sandbox runs a lookup for you on the server, so no key is ever placed in the browser.
The first 10 runs each day are free. After that, a run uses the lookup's credits from your plan. You can also upload a CSV of up to 500 rows and download the results; bulk runs always use credits.
The demo at the top of this page follows the same rules.
All clear No active alerts.
The dashboard tells you when 90 percent of the year's credits are used, when all of them are used, and during the last 30 days before the plan ends.
| When | Lookup | Credits | Time |
|---|---|---|---|
| Today 14:02 | /api/v1/geocode/zip | 1 | 3 ms |
| Today 14:02 | /api/v1/geocode/zip | 1 | 2 ms |
| Today 13:47 | /api/v1/dealers/nearby | 2 | 41 ms |
| Today 13:15 | sandbox:estimate-shipping | 3 | 1 ms |
Each row is one call: the lookup, the credits it used and how long it took.
Know the limits
These are the edges of what the service does today. It is better to read them here than to find them in production.
Distance is a straight line
Miles are measured point to point over the globe and rounded to one decimal. They are not driving miles.
Shipping is five distance bands
The estimate is a fixed figure per band, not a carrier's quote.
| Miles | Estimate |
|---|---|
| Up to 50 | $0 |
| 51 to 300 | $395 |
| 301 to 800 | $695 |
| 801 to 1,500 | $895 |
| Over 1,500 | $1,195 |
Population counts whole ZIP areas
A ZIP area is counted in full when its centre lies inside your radius, and not at all otherwise. Below about 5 miles in rural areas the figure is unreliable.
Address lookups are paced
Address, city and dealer-name lookups share one queue to OpenStreetMap at about one request a second. ZIP lookups do not wait in it.
United States only
The ZIP table, the dealer index and the population data cover the United States, and address searches are limited to it.
Dealer data is refreshed by hand
The dealer index is rebuilt when an administrator starts an import. It does not update on a schedule.
One city name per ZIP
Some ZIP codes are known by more than one town name. A shopper who types a name other than the one in our table is shown the expected name. That is why warning is the default and blocking is a choice.
An exact match, apart from case
"columbus" matches "Columbus". An abbreviation or a different spelling of the same place does not.
US ZIP codes only
Postcodes from other countries are not checked. Those orders pass through untouched.
City and ZIP, not the street
The plugin does not check the street address, the state or whether a house number exists.
It needs WooCommerce
The plugin works on the WooCommerce checkout. It asks for WordPress 6.0 or later and PHP 7.4 or later.
Promises we build in
Your key is shown once
We store a hash of the key and the first 12 characters for display. Nobody, including us, can read the key back later.
Revoking is immediate
A revoked key is refused on its next call. Your other keys keep working.
Our errors are not charged
When the service answers with a server error, no credits are used for that call.
Counting never slows the answer
Usage is recorded after your response has been sent.
Every call is on the record
The audit log lists your recent calls with the credits each one used and how long it took.
No key in the browser
Sandbox runs are made by the server on your behalf, using your sign-in.
Our downtime never blocks a sale
If the service does not answer within 5 seconds, or answers with an error, the check is skipped and the order continues.
The key stays on your server
The shopper's browser talks to your own site, and your site talks to us. The key is never sent to the browser.
Nothing happens until it is set up
With no address or key entered, the plugin does nothing and checkout is unchanged.
Warning is the default
A fresh install only warns. Orders are held back only after you turn "Hard Block" on.
Settings survive a switch-off
Deactivating the plugin keeps your settings, so turning it back on needs no setup.
Credits and the plan
One yearly plan
The plan runs for one year and carries 50,000 credits. Calls beyond that keep working and are counted as overage on your dashboard.
There is no free trial of the API itself. The Sandbox's 10 free runs a day are the way to try it.
Try before you start
Sign in and use the Sandbox: 10 free runs a day, with no plan and no key. Your dashboard shows the plan before you start it.
What a call costs
Most lookups cost 1 credit. Lookups that do more work cost more: 2 for nearby dealers, population and address-to-address distance, 3 for a shipping estimate, 5 for a dealership search and 10 for dealer profiles. The full list is in the table above.
What a checkout costs
Each city and ZIP check is 1 credit. A checkout makes several checks: as the shopper moves between the fields, and again when the order is placed.
Questions
Can I try it without paying?
Yes, in the Sandbox. Any signed-in user gets 10 free runs a day. Creating an API key and calling the API need an active plan.
Am I charged when a lookup finds nothing?
Yes. A call that completes uses its credits, including one that finds no match or is missing a field. A call that fails with a server error is free, and a call with a wrong or revoked key is refused before anything is counted.
What happens when my credits run out?
Calls keep working. Usage above 50,000 credits is counted as overage and shown on your dashboard.
Can I have more than one key?
Yes. Give each key a name, and revoke one without touching the others.
What does a ZIP lookup return for a ZIP it does not know?
If the ZIP is not in the table, the service asks OpenStreetMap. If that finds nothing either, the answer is { ok: true, data: null }.
How current is the dealer data?
It is as current as the last import of the OpenStreetMap extract, which an administrator starts by hand.
Will it slow my checkout down?
The check runs when the shopper leaves a field, not on every keystroke. If we take longer than 5 seconds the check is skipped.
What does the shopper see?
A short message under the city field: "City does not match zip code. Expected:" followed by the city we hold for that ZIP.
What if the shopper is right and the table is wrong?
With warning only, they can place the order anyway. With blocking on, they must type the expected city, so think about your customers before turning it on.
Does it work for international orders?
It checks US ZIP codes. Other postcodes are skipped.
Can shoppers see my API key?
No. The check goes from the browser to your site and from your site to us.
What do I need?
A WooCommerce store, the plugin, and one GeoService API key.