Pick two Brazilian cities and see the straight-line (great-circle) distance between them in kilometres, computed with the Haversine formula.
The straight-line distance between two cities is the shortest path along the surface of the Earth — the great-circle distance. It is computed with the Haversine formula, which takes the latitude and longitude of both points and accounts for the curvature of the planet. The result is in kilometres and is always shorter than the road distance, because roads do not run in straight lines.
This tool covers Brazilian state capitals and major cities — about 77 in total. The coordinates are the geographic centre of each city, which means the distance is measured from downtown to downtown. For large cities like São Paulo or Manaus, the actual distance to a specific neighbourhood can differ by ten or twenty kilometres.
Everything runs in your browser. The city coordinates are embedded in the page, the Haversine computation is pure arithmetic, and nothing you type is uploaded or stored. For the road distance, which depends on the actual route, use a mapping service like Google Maps or Waze.
Haversine: a = sin²(Δlat/2) + cos(lat₁) × cos(lat₂) × sin²(Δlon/2); d = 2R × atan2(√a, √(1−a)), where R = 6,371 km (mean Earth radius) and angles are in radians.
Because this is the straight-line (great-circle) distance, not the road distance. Roads follow terrain, avoid obstacles and connect cities through intermediary points, so the driving distance is typically 20–40% longer.
No. It covers state capitals and the largest cities. The full municipality list would exceed the page weight limit. For smaller cities, use the IBGE coordinates API directly.
For distances within Brazil it is accurate to within a few kilometres. The main source of error is not the formula but the coordinate — "São Paulo" is a 1,500 km² city, and the distance is measured from one representative point.
No. The coordinates are embedded in the page and the computation runs locally. Nothing is uploaded or stored.
Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.
Vai.la is not responsible for how the tools are used or for decisions made based on their results.