AI engineering glossary · Feature engineering data prep

What is haversine distance?

Haversine distance: The great-circle distance between two points on a sphere given their latitude and longitude, calculated with a formula using sines of half-angle differences. It approximates real-world distance between places on Earth.

Level: intermediateTopic: Feature engineering data prep

Haversine distance: an example

The haversine distance from Bengaluru to Chennai is roughly 290 km, while the road distance is longer.

Related terms

More Feature engineering data prep terms

Where you learn it

Haversine distance is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.