FREE TOOL

Distance between cities

Two cities in, miles and kilometers out. Straight line, center to center.

A state after the comma picks the right one: Portland, ME.

Free, no signup.

THE API UNDERNEATH

GET /city/Portland?state=OR

One /city call per side pins each name to official coordinates, and the distance is computed between them. Curated gazetteers for 27 countries. Same endpoint on every plan, one pooled request per lookup.

City APIZIP distance

QUESTIONS

How is the distance measured?
A straight line between the two city center points, the great-circle math airlines use. Driving distance follows roads and runs longer.
It picked the wrong Portland.
A bare name matches the biggest city that carries it. Add the state after a comma, Portland, ME, and it pins the right one.
Which cities are covered?
Curated official gazetteers for 27 countries, US included. A name we cannot place comes back as an honest miss, never a guess.
Can I do this from code?
Yes. GET /city/{name} returns official coordinates for each city, and the distance is one haversine away. One pooled request per lookup.