{"id":795,"date":"2026-08-01T08:00:00","date_gmt":"2026-08-01T02:30:00","guid":{"rendered":"https:\/\/digitoolkit.in\/blog\/?p=795"},"modified":"2026-07-30T12:02:33","modified_gmt":"2026-07-30T06:32:33","slug":"haversine-formula-explained","status":"publish","type":"post","link":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/","title":{"rendered":"Haversine Formula Explained with Examples"},"content":{"rendered":"<div style=\"background:#f2f7fb;border-left:4px solid #2271b1;padding:16px 20px;margin:0 0 24px;border-radius:4px;\">\n<p><strong>Quick Answer:<\/strong> The haversine formula is d = 2R &middot; arcsin(&radic;(sin&sup2;(&Delta;lat\/2) + cos(lat1)&middot;cos(lat2)&middot;sin&sup2;(&Delta;lon\/2))), where R is Earth&#8217;s radius (6,371 km) and all angles are in radians. It converts two latitude\/longitude pairs into the great-circle distance between them, which is the shortest path over the Earth&#8217;s surface.<\/p>\n<p><strong>Key takeaways:<\/strong><\/p>\n<ul>\n<li>The formula is built on the &#8220;haversine&#8221; function, hav(&theta;) = sin&sup2;(&theta;\/2).<\/li>\n<li>It returns a central angle first, which you then multiply by Earth&#8217;s radius.<\/li>\n<li>The cosine terms weight the longitude difference by how far you are from the equator.<\/li>\n<li>For India (8&ndash;37&deg; N) the cosine factor stays high, so longitude differences carry real weight.<\/li>\n<li>The formula stays numerically stable even for very short distances within a single Indian city.<\/li>\n<\/ul>\n<\/div>\n<p>The haversine formula is one of the most elegant results in navigation mathematics, and once you understand what each piece does, it stops looking like a wall of symbols. In this guide we break the formula down term by term and walk through fully worked Indian examples, so whether you are a developer building a delivery app in Hyderabad or a student revising spherical trigonometry, you will leave knowing exactly why it works.<\/p>\n<blockquote>\n<p><strong>Expert insight:<\/strong> The word &#8220;haversine&#8221; is short for &#8220;half the versed sine.&#8221; Navigators favoured it for centuries because the sin&sup2;(&theta;\/2) form always stays positive, avoiding the sign confusion that plagued older distance methods.<\/p>\n<\/blockquote>\n<h2>The Formula and What Each Term Means<\/h2>\n<p>Written in full, the haversine distance is:<\/p>\n<p><code>d = 2R &middot; arcsin( &radic;( sin&sup2;(&Delta;lat\/2) + cos(lat1) &middot; cos(lat2) &middot; sin&sup2;(&Delta;lon\/2) ) )<\/code><\/p>\n<p>Each part has a clear job. The term sin&sup2;(&Delta;lat\/2) captures the north&ndash;south separation between your two points. The term sin&sup2;(&Delta;lon\/2) captures the east&ndash;west separation. The two cosine terms, cos(lat1) and cos(lat2), shrink the east&ndash;west contribution as you move away from the equator, because lines of longitude crowd together near the poles. Finally, the arcsine converts the combined value into a central angle, and multiplying by R turns that angle into a real distance on the ground.<\/p>\n<h2>Why the Cosine Terms Matter in India<\/h2>\n<p>India sits entirely in the northern hemisphere, roughly between 8&deg; N (Kanyakumari) and 37&deg; N (the far north of Kashmir). At these latitudes the cosine factor ranges from about 0.99 down to 0.80, meaning a degree of longitude represents between roughly 110 km and 89 km on the ground. This is why two cities at the same latitude but different longitudes &mdash; say Ahmedabad and Kolkata &mdash; are closer together than their raw longitude gap alone would suggest. The cosine correction is doing exactly this adjustment automatically.<\/p>\n<h2>Worked Example 1: Mumbai to Bengaluru<\/h2>\n<p>Take Mumbai (19.0760&deg; N, 72.8777&deg; E) and Bengaluru (12.9716&deg; N, 77.5946&deg; E).<\/p>\n<ol>\n<li>Convert to radians and find the differences: &Delta;lat = &minus;0.10654 rad, &Delta;lon = 0.08233 rad.<\/li>\n<li>sin&sup2;(&Delta;lat\/2) = sin&sup2;(&minus;0.05327) = 0.002835.<\/li>\n<li>cos(19.0760&deg;) &times; cos(12.9716&deg;) = 0.9451 &times; 0.9745 = 0.9210.<\/li>\n<li>sin&sup2;(&Delta;lon\/2) = sin&sup2;(0.04116) = 0.001693.<\/li>\n<li>a = 0.002835 + (0.9210 &times; 0.001693) = 0.004395.<\/li>\n<li>d = 2 &times; 6,371 &times; arcsin(&radic;0.004395) = <strong>845 km<\/strong>.<\/li>\n<\/ol>\n<p>The straight-line distance is about 845 km, while the NH-48 <a href=\"https:\/\/digitoolkit.in\/calculators\/distance-calculator\/\">road distance<\/a> is closer to 980 km.<\/p>\n<h2>Worked Example 2: Chennai to Hyderabad<\/h2>\n<p>For Chennai (13.0827&deg; N, 80.2707&deg; E) and Hyderabad (17.3850&deg; N, 78.4867&deg; E), the same procedure gives a central angle that resolves to roughly <strong>515 km<\/strong> of <a href=\"https:\/\/digitoolkit.in\/calculators\/haversine-distance-calculator\/\">great-circle distance<\/a>. The Chennai&ndash;Hyderabad drive is about 625 km, so the circuity ratio here is around 1.21, typical of peninsular Indian highways.<\/p>\n<h2>The Haversine Function in a Table<\/h2>\n<table border=\"1\" cellpadding=\"8\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>Symbol<\/th>\n<th>Meaning<\/th>\n<th>Unit<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>lat1, lat2<\/td>\n<td>Latitudes of the two points<\/td>\n<td>radians<\/td>\n<\/tr>\n<tr>\n<td>lon1, lon2<\/td>\n<td>Longitudes of the two points<\/td>\n<td>radians<\/td>\n<\/tr>\n<tr>\n<td>&Delta;lat, &Delta;lon<\/td>\n<td>Differences (point 2 minus point 1)<\/td>\n<td>radians<\/td>\n<\/tr>\n<tr>\n<td>R<\/td>\n<td>Earth&#8217;s mean radius<\/td>\n<td>6,371 km<\/td>\n<\/tr>\n<tr>\n<td>d<\/td>\n<td>Great-circle distance<\/td>\n<td>km<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Benefits of Understanding the Formula<\/h2>\n<p>Grasping the formula rather than treating it as a black box pays off in several ways. Developers who understand the cosine weighting can debug distance bugs quickly, such as spotting when latitude and longitude have been swapped in a database. Data scientists can vectorise the calculation confidently across millions of rows for a pan-India logistics dataset. Students who understand the derivation can adapt it to related problems, such as bearing calculations or destination-point projection. And anyone quoting distances gains the confidence to explain to a manager why the app&#8217;s figure differs from the odometer reading.<\/p>\n<h2>Challenges and Limitations<\/h2>\n<p>The formula&#8217;s main limitation is its spherical-Earth assumption, which introduces an error of up to about 0.5%. It also cannot capture elevation, so a route through the Western Ghats or Himalayas will be understated. Additionally, the arcsine version can lose precision for nearly antipodal points, which is why production code often uses the atan2 variant instead. None of these limits matter for typical Indian city-scale work, but they are worth knowing before you rely on the number for surveying or aviation planning.<\/p>\n<h2>Common Mistakes to Avoid<\/h2>\n<ul>\n<li><strong>Applying cosine to the latitude difference.<\/strong> The cosine terms use the individual latitudes, not &Delta;lat; mixing this up is a frequent coding bug.<\/li>\n<li><strong>Leaving angles in degrees.<\/strong> Radians are mandatory throughout; a missing conversion is the top cause of wrong answers.<\/li>\n<li><strong>Using arcsin outside its domain.<\/strong> Floating-point rounding can push the input just above 1; clamp it to avoid a math error.<\/li>\n<li><strong>Forgetting the factor of 2.<\/strong> The arcsine form needs the leading 2; dropping it halves your distance.<\/li>\n<li><strong>Assuming symmetry breaks.<\/strong> Haversine is symmetric, so A to B equals B to A; if your code disagrees, you have a bug elsewhere.<\/li>\n<li><strong>Hard-coding the equatorial radius.<\/strong> Use the mean radius 6,371 km unless you have a specific reason to model the ellipsoid.<\/li>\n<\/ul>\n<h2>Best Practices and Expert Recommendations<\/h2>\n<ul>\n<li><strong>Prefer the atan2 form in code.<\/strong> It is more stable than arcsin across the full range of distances.<\/li>\n<li><strong>Store coordinates at full precision.<\/strong> Keep at least six decimal places to preserve sub-metre accuracy.<\/li>\n<li><strong>Unit-test with known Indian routes.<\/strong> Verify your implementation against Delhi&ndash;Mumbai (about 1,148 km) before trusting it.<\/li>\n<li><strong>Document your radius choice.<\/strong> State clearly whether outputs are in <a href=\"https:\/\/digitoolkit.in\/calculators\/length-converter\/\">kilometres<\/a> or miles to avoid downstream confusion.<\/li>\n<li><strong>Vectorise for large datasets.<\/strong> Use array operations rather than per-row loops when processing many Indian pin-code centroids.<\/li>\n<li><strong>Switch to Vincenty for survey work.<\/strong> When one-metre accuracy is not enough, move to the ellipsoidal model.<\/li>\n<\/ul>\n<div data-dtk-related=\"1\" style=\"background:#f8f9fb;border:1px solid #e2e8f0;border-radius:6px;padding:16px 20px;margin:28px 0;\"><strong>Related tools &amp; guides on DigiToolkit<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/digitoolkit.in\/calculators\/haversine-distance-calculator\/\">Try the free Haversine Distance Calculator &rarr;<\/a><\/li>\n<li><a href=\"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/\">How to Calculate Haversine Distance (Step by Step)<\/a><\/li>\n<li><a href=\"https:\/\/digitoolkit.in\/blog\/what-is-haversine-distance\/\">What Is Haversine Distance? A Simple Guide<\/a><\/li>\n<li><a href=\"https:\/\/digitoolkit.in\/blog\/haversine-distance-calculator-guide\/\">Haversine Distance Calculator: Free Online Tool + Guide<\/a><\/li>\n<li><a href=\"https:\/\/digitoolkit.in\/blog\/haversine-distance-examples\/\">Haversine Distance Examples for Beginners<\/a><\/li>\n<li><a href=\"https:\/\/digitoolkit.in\/calculators\/distance-calculator\/\">Distance Calculator<\/a><\/li>\n<li><a href=\"https:\/\/digitoolkit.in\/calculators\/length-converter\/\">Length Converter<\/a><\/li>\n<li><a href=\"https:\/\/digitoolkit.in\/blog\/category\/travel-automotive\/\">More Travel &amp; Automotive guides<\/a><\/li>\n<\/ul>\n<\/div>\n<h2>Frequently Asked Questions<\/h2>\n<p><strong>What does the word haversine mean?<\/strong><br \/>Haversine is short for &#8220;half the versed sine&#8221; and is defined as hav(&theta;) = sin&sup2;(&theta;\/2). It was used historically in navigation tables because it keeps values positive and simplifies great-circle distance calculations.<\/p>\n<p><strong>Why are there two cosine terms in the formula?<\/strong><br \/>The cosine of each latitude scales the east&ndash;west (longitude) component of the distance. Near the equator this factor is close to 1, but it shrinks toward the poles because lines of longitude converge, so the formula automatically corrects for your position on the globe.<\/p>\n<p><strong>Is the arcsine or atan2 version better?<\/strong><br \/>Mathematically they give the same answer, but the atan2 version is numerically more stable for points that are nearly opposite each other on the globe. Most production libraries use atan2 for this reason.<\/p>\n<p><strong>Does the haversine formula work for short distances in one city?<\/strong><br \/>Yes. Unlike some older formulas, haversine stays accurate for very small separations, so it works reliably whether you are measuring two metro stations in Delhi or two cities across India.<\/p>\n<p><strong>Can I use the formula to find direction as well as distance?<\/strong><br \/>The haversine formula itself returns only distance. To find the initial bearing between two points you use a separate but related formula based on atan2 of the longitude and latitude differences.<\/p>\n<p><script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"What does the word haversine mean?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Haversine is short for half the versed sine and is defined as hav(theta) = sin squared (theta\/2). It was used historically in navigation tables because it keeps values positive and simplifies great-circle distance calculations.\"}},{\"@type\":\"Question\",\"name\":\"Why are there two cosine terms in the formula?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The cosine of each latitude scales the east-west longitude component of the distance. Near the equator this factor is close to 1 but shrinks toward the poles because lines of longitude converge, so the formula automatically corrects for your position on the globe.\"}},{\"@type\":\"Question\",\"name\":\"Is the arcsine or atan2 version better?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Mathematically they give the same answer, but the atan2 version is numerically more stable for points that are nearly opposite each other on the globe. Most production libraries use atan2 for this reason.\"}},{\"@type\":\"Question\",\"name\":\"Does the haversine formula work for short distances in one city?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes. Unlike some older formulas, haversine stays accurate for very small separations, so it works reliably whether you are measuring two metro stations in Delhi or two cities across India.\"}},{\"@type\":\"Question\",\"name\":\"Can I use the formula to find direction as well as distance?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The haversine formula itself returns only distance. To find the initial bearing between two points you use a separate but related formula based on atan2 of the longitude and latitude differences.\"}}]}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The haversine formula explained term by term with worked Indian examples like Mumbai to Bengaluru. Understand great-circle distance the easy way.<\/p>\n","protected":false},"author":1,"featured_media":841,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[31],"tags":[],"class_list":["post-795","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-travel-automotive"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Haversine Formula Explained with Examples<\/title>\n<meta name=\"description\" content=\"The haversine formula explained term by term with worked Indian examples like Mumbai to Bengaluru. Understand great-circle distance the easy way.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Haversine Formula Explained with Examples\" \/>\n<meta property=\"og:description\" content=\"The haversine formula explained term by term with worked Indian examples like Mumbai to Bengaluru. Understand great-circle distance the easy way.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-01T02:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-795-haversine-formula-explained.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"mundliya\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mundliya\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/\"},\"author\":{\"name\":\"mundliya\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/#\\\/schema\\\/person\\\/2ec0a40ee547d8717205703b12c30cb4\"},\"headline\":\"Haversine Formula Explained with Examples\",\"datePublished\":\"2026-08-01T02:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/\"},\"wordCount\":1296,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/dtk-featured-795-haversine-formula-explained.png\",\"articleSection\":[\"Travel &amp; Automotive\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/\",\"url\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/\",\"name\":\"Haversine Formula Explained with Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/dtk-featured-795-haversine-formula-explained.png\",\"datePublished\":\"2026-08-01T02:30:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/#\\\/schema\\\/person\\\/2ec0a40ee547d8717205703b12c30cb4\"},\"description\":\"The haversine formula explained term by term with worked Indian examples like Mumbai to Bengaluru. Understand great-circle distance the easy way.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/#primaryimage\",\"url\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/dtk-featured-795-haversine-formula-explained.png\",\"contentUrl\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/dtk-featured-795-haversine-formula-explained.png\",\"width\":1200,\"height\":675,\"caption\":\"Illustration for Haversine Formula Explained with Examples - DigiToolkit\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/haversine-formula-explained\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Haversine Formula Explained with Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/#\\\/schema\\\/person\\\/2ec0a40ee547d8717205703b12c30cb4\",\"name\":\"mundliya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff96cdd08389817bdf26bc4354a696a60d104a9c4324e7d47b224f29adc5d116?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff96cdd08389817bdf26bc4354a696a60d104a9c4324e7d47b224f29adc5d116?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff96cdd08389817bdf26bc4354a696a60d104a9c4324e7d47b224f29adc5d116?s=96&d=mm&r=g\",\"caption\":\"mundliya\"},\"sameAs\":[\"https:\\\/\\\/digitoolkit.in\\\/blog\"],\"url\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/author\\\/mundliya\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Haversine Formula Explained with Examples","description":"The haversine formula explained term by term with worked Indian examples like Mumbai to Bengaluru. Understand great-circle distance the easy way.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/","og_locale":"en_US","og_type":"article","og_title":"Haversine Formula Explained with Examples","og_description":"The haversine formula explained term by term with worked Indian examples like Mumbai to Bengaluru. Understand great-circle distance the easy way.","og_url":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/","article_published_time":"2026-08-01T02:30:00+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-795-haversine-formula-explained.png","type":"image\/png"}],"author":"mundliya","twitter_card":"summary_large_image","twitter_misc":{"Written by":"mundliya","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/#article","isPartOf":{"@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/"},"author":{"name":"mundliya","@id":"https:\/\/digitoolkit.in\/blog\/#\/schema\/person\/2ec0a40ee547d8717205703b12c30cb4"},"headline":"Haversine Formula Explained with Examples","datePublished":"2026-08-01T02:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/"},"wordCount":1296,"commentCount":0,"image":{"@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/#primaryimage"},"thumbnailUrl":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-795-haversine-formula-explained.png","articleSection":["Travel &amp; Automotive"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/","url":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/","name":"Haversine Formula Explained with Examples","isPartOf":{"@id":"https:\/\/digitoolkit.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/#primaryimage"},"image":{"@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/#primaryimage"},"thumbnailUrl":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-795-haversine-formula-explained.png","datePublished":"2026-08-01T02:30:00+00:00","author":{"@id":"https:\/\/digitoolkit.in\/blog\/#\/schema\/person\/2ec0a40ee547d8717205703b12c30cb4"},"description":"The haversine formula explained term by term with worked Indian examples like Mumbai to Bengaluru. Understand great-circle distance the easy way.","breadcrumb":{"@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/#primaryimage","url":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-795-haversine-formula-explained.png","contentUrl":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-795-haversine-formula-explained.png","width":1200,"height":675,"caption":"Illustration for Haversine Formula Explained with Examples - DigiToolkit"},{"@type":"BreadcrumbList","@id":"https:\/\/digitoolkit.in\/blog\/haversine-formula-explained\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/digitoolkit.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Haversine Formula Explained with Examples"}]},{"@type":"WebSite","@id":"https:\/\/digitoolkit.in\/blog\/#website","url":"https:\/\/digitoolkit.in\/blog\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/digitoolkit.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/digitoolkit.in\/blog\/#\/schema\/person\/2ec0a40ee547d8717205703b12c30cb4","name":"mundliya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ff96cdd08389817bdf26bc4354a696a60d104a9c4324e7d47b224f29adc5d116?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ff96cdd08389817bdf26bc4354a696a60d104a9c4324e7d47b224f29adc5d116?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff96cdd08389817bdf26bc4354a696a60d104a9c4324e7d47b224f29adc5d116?s=96&d=mm&r=g","caption":"mundliya"},"sameAs":["https:\/\/digitoolkit.in\/blog"],"url":"https:\/\/digitoolkit.in\/blog\/author\/mundliya\/"}]}},"_links":{"self":[{"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/posts\/795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/comments?post=795"}],"version-history":[{"count":2,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/posts\/795\/revisions"}],"predecessor-version":[{"id":816,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/posts\/795\/revisions\/816"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/media\/841"}],"wp:attachment":[{"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/media?parent=795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/categories?post=795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/tags?post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}