How far apart two places are, the drive, the time difference, and the two compared side by side.
In a straight line between the centers of the two codes: 222 miles (357 km).
| Step | Instruction | Distance |
|---|
Census figures are for U.S. ZIP Codes only, so a Canadian postal code has none to compare.
| Measure | A Ottawa | B Toronto |
|---|---|---|
| City | Ottawa, ON | Toronto, ON |
| Time zone | Eastern | Eastern |
Connect Claude or ChatGPT to our ZIP Code data, then ask questions in plain English. No sign-up with us needed.
This question answers in full without a key.
New to this? We'll walk you through it, one step at a time.
Developer tools: Claude Code, Cursor, VS Code, CodexThe distance, the direction and both time zones above came from one call to the ZIP Codes API /v2/distance endpoint.
This comparison used 1 credits; a free key includes 2,500 a day.
curl -H "X-Api-Key: YOUR_KEY" "https://api.zip-codes.com/v2/distance?from=K1A+0A1&to=M5V"
The real /v2/distance response for this pair. Coordinates are rounded to 3 decimals here; the API returns full precision.
{
"success": true,
"request": {
"from": "K1A 0A1",
"to": "M5V"
},
"results": [
{
"success": true,
"input": {
"from": "K1A 0A1",
"to": "M5V"
},
"from": {
"country": "CA",
"code": "K1A 0A1",
"code_type": "Postal",
"city": "Ottawa",
"state": "ON",
"county": "Ottawa",
"location": {
"lat": 45.444,
"lon": -75.685
},
"timezone": {
"source": "IANA Time Zone Database / timezone-boundary-builder",
"product": null,
"attribution": null,
"iana_name": "America/Toronto",
"name": "Eastern",
"abbreviation": "EST",
"abbreviation_dst": "EDT",
"utc_offset": -5,
"utc_offset_dst": -4,
"observes_dst": true
},
"input_type": "code"
},
"to": {
"country": "CA",
"code": "M5V",
"code_type": "FSA",
"city": "Toronto",
"state": "ON",
"county": null,
"location": {
"lat": 43.638,
"lon": -79.404
},
"timezone": {
"source": "IANA Time Zone Database / timezone-boundary-builder",
"product": null,
"attribution": null,
"iana_name": "America/Toronto",
"name": "Eastern",
"abbreviation": "EST",
"abbreviation_dst": "EDT",
"utc_offset": -5,
"utc_offset_dst": -4,
"observes_dst": true
},
"input_type": "code"
},
"distance": {
"miles": 221.57,
"km": 356.59
},
"bearing": 237.1
}
],
"meta": {
"credits": {
"used": 1
}
}
}