{"id":794,"date":"2026-08-01T06:00:00","date_gmt":"2026-08-01T00:30:00","guid":{"rendered":"https:\/\/digitoolkit.in\/blog\/?p=794"},"modified":"2026-07-30T12:02:33","modified_gmt":"2026-07-30T06:32:33","slug":"how-to-calculate-haversine-distance","status":"publish","type":"post","link":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/","title":{"rendered":"How to Calculate Haversine Distance (Step by Step)"},"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> To calculate haversine distance, convert both latitude\/longitude pairs to radians, apply a = sin&sup2;(&Delta;lat\/2) + cos(lat1)&middot;cos(lat2)&middot;sin&sup2;(&Delta;lon\/2), then c = 2&middot;atan2(&radic;a, &radic;(1&minus;a)), and multiply c by Earth&#8217;s radius (6,371 km). The result is the straight-line &#8220;as-the-crow-flies&#8221; distance, not the road distance.<\/p>\n<p><strong>Key takeaways:<\/strong><\/p>\n<ul>\n<li>Haversine gives great-circle (shortest surface) distance between two points on Earth.<\/li>\n<li>Always convert degrees to radians first: radians = degrees &times; &pi;\/180.<\/li>\n<li>Use Earth&#8217;s mean radius of 6,371 km to get the answer in kilometres.<\/li>\n<li>Delhi to Mumbai works out to roughly 1,148 km in a straight line, but about 1,400 km by road.<\/li>\n<li>For Indian coordinates, source lat\/long from ISRO&#8217;s Bhuvan or Survey of India for accuracy.<\/li>\n<\/ul>\n<\/div>\n<p>If you have ever wondered exactly how far apart two Indian cities are &mdash; not by road, but in a straight line across the surface of the Earth &mdash; the haversine formula is the tool that gives you the answer. Delivery companies in Bengaluru, cab aggregators in Delhi, drone-survey startups working under India&#8217;s new geospatial rules, and even students preparing for competitive exams all rely on this one calculation. This step-by-step guide shows you how to compute haversine distance by hand and with our free calculator, using real Indian coordinates.<\/p>\n<blockquote>\n<p><strong>Key takeaway:<\/strong> Haversine distance is the shortest path over the Earth&#8217;s curved surface. It is almost always shorter than the <a href=\"https:\/\/digitoolkit.in\/calculators\/distance-calculator\/\">road distance<\/a>, which is why a Delhi&ndash;Mumbai flight covers far less ground than a Delhi&ndash;Mumbai truck.<\/p>\n<\/blockquote>\n<h2>What You Need Before You Start<\/h2>\n<p>The haversine calculation needs just four numbers: the latitude and longitude of your starting point and the latitude and longitude of your destination. In India, you can read these coordinates straight off Google Maps, or, for survey-grade accuracy, from ISRO&#8217;s Bhuvan geoportal run by the National Remote Sensing Centre. Under the Geospatial Data Guidelines issued by the Department of Science and Technology in February 2021, Indian individuals and companies can now freely access and use map coordinates up to a one-metre horizontal accuracy without a licence, which makes coordinate-based distance work much easier than it was a decade ago.<\/p>\n<p>You also need to decide which unit you want. Multiplying by 6,371 gives <a href=\"https:\/\/digitoolkit.in\/calculators\/length-converter\/\">kilometres<\/a>; multiplying by 3,959 gives miles. Because India uses the metric system for road signage, logistics, and aviation reporting, we will work in kilometres throughout.<\/p>\n<h2>The Haversine Formula, One Line at a Time<\/h2>\n<p>The formula looks intimidating, but it is just four short steps. Here is the full expression:<\/p>\n<p><code>a = sin&sup2;(&Delta;lat\/2) + cos(lat1) &times; cos(lat2) &times; sin&sup2;(&Delta;lon\/2)<\/code><br \/>\n<code>c = 2 &times; atan2(&radic;a, &radic;(1&minus;a))<\/code><br \/>\n<code>distance = R &times; c<\/code>, where R = 6,371 km<\/p>\n<p>Here &Delta;lat is the difference in latitude, &Delta;lon is the difference in longitude, and R is the Earth&#8217;s mean radius. The letters lat1, lon1, lat2 and lon2 are your two coordinate pairs, all converted to radians.<\/p>\n<h2>Step-by-Step: Delhi to Mumbai<\/h2>\n<p>Let us calculate the straight-line distance from New Delhi (28.6139&deg; N, 77.2090&deg; E) to Mumbai (19.0760&deg; N, 72.8777&deg; E). These are the standard coordinates used for both cities&#8217; central points.<\/p>\n<ol>\n<li><strong>Convert degrees to radians.<\/strong> Multiply each figure by &pi;\/180. Delhi becomes lat1 = 0.49941 rad, lon1 = 1.34755 rad; Mumbai becomes lat2 = 0.33295 rad, lon2 = 1.27195 rad.<\/li>\n<li><strong>Find the differences.<\/strong> &Delta;lat = 0.33295 &minus; 0.49941 = &minus;0.16646 rad. &Delta;lon = 1.27195 &minus; 1.34755 = &minus;0.07560 rad.<\/li>\n<li><strong>Compute a.<\/strong> sin&sup2;(&minus;0.08323) = 0.006911. cos(0.49941) &times; cos(0.33295) = 0.8776 &times; 0.9451 = 0.8294. sin&sup2;(&minus;0.03780) = 0.001428. So a = 0.006911 + (0.8294 &times; 0.001428) = 0.008095.<\/li>\n<li><strong>Compute c.<\/strong> c = 2 &times; atan2(&radic;0.008095, &radic;0.991905) = 0.18019 rad.<\/li>\n<li><strong>Multiply by R.<\/strong> distance = 6,371 &times; 0.18019 = <strong>1,148 km<\/strong>.<\/li>\n<\/ol>\n<p>So the crow-flies distance from Delhi to Mumbai is about 1,148 km. The actual road distance on NH-48 is roughly 1,400 km, and the rail distance is similar, because roads and tracks must bend around terrain, rivers, and towns. This gap between straight-line and road distance is exactly why logistics planners use haversine as a first estimate and then add a &#8220;circuity factor&#8221; of around 1.2 to 1.3 for Indian highways.<\/p>\n<h2>A Second Worked Example: Delhi to Kolkata<\/h2>\n<p>Using Kolkata&#8217;s coordinates (22.5726&deg; N, 88.3639&deg; E) against Delhi and following the same five steps, a works out to 0.010431 and c to 0.20462 rad. The haversine distance is 6,371 &times; 0.20462 = <strong>1,304 km<\/strong>. Once again this is well below the roughly 1,500 km you would drive on NH-19, confirming that <a href=\"https:\/\/digitoolkit.in\/calculators\/haversine-distance-calculator\/\">great-circle distance<\/a> is a floor, not a real-world travel figure.<\/p>\n<h2>Quick-Reference Table: Straight-Line vs Road Distance<\/h2>\n<table border=\"1\" cellpadding=\"8\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>Route<\/th>\n<th>Haversine (km)<\/th>\n<th>Approx. road (km)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Delhi &ndash; Mumbai<\/td>\n<td>1,148<\/td>\n<td>1,400<\/td>\n<\/tr>\n<tr>\n<td>Delhi &ndash; Kolkata<\/td>\n<td>1,304<\/td>\n<td>1,500<\/td>\n<\/tr>\n<tr>\n<td>Mumbai &ndash; Bengaluru<\/td>\n<td>845<\/td>\n<td>980<\/td>\n<\/tr>\n<tr>\n<td>Chennai &ndash; Hyderabad<\/td>\n<td>515<\/td>\n<td>625<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Benefits of Calculating Haversine Distance<\/h2>\n<p>Knowing the straight-line distance is genuinely useful in day-to-day Indian business and study. It gives logistics and quick-commerce firms an instant, computation-cheap estimate for pricing delivery zones without calling an expensive routing API for every order. It lets aviation and drone operators estimate flight paths, which follow great circles far more closely than road-bound vehicles. For students, mastering haversine builds a solid foundation in spherical trigonometry that appears in geography, surveying, and data-science courses across Indian universities. And because the formula is numerically stable even for very small distances, it is reliable whether you are measuring two neighbourhoods in Pune or two cities across the country.<\/p>\n<h2>Challenges and Limitations<\/h2>\n<p>Haversine assumes the Earth is a perfect sphere, but our planet is an oblate spheroid that bulges at the equator. This introduces an error of up to about 0.5%, which is negligible for city-to-city work but matters for precise survey applications, where the Vincenty formula on the WGS-84 ellipsoid is preferred. Haversine also ignores altitude, so it will not reflect the extra distance travelled climbing through the Himalayas. Most importantly, it never accounts for roads, rivers, or restricted zones, so it should never be quoted to a customer as a driving distance.<\/p>\n<h2>Common Mistakes to Avoid<\/h2>\n<ul>\n<li><strong>Forgetting to convert to radians.<\/strong> Every trigonometric function in the formula expects radians. Feeding it raw degrees is the single most common error and produces wildly wrong answers.<\/li>\n<li><strong>Swapping latitude and longitude.<\/strong> In India, latitudes are roughly 8&ndash;37&deg; N and longitudes 68&ndash;97&deg; E, so if your &#8220;latitude&#8221; is above 60, you have almost certainly swapped the two.<\/li>\n<li><strong>Using the wrong Earth radius.<\/strong> Mixing a mileage radius (3,959) with a metric expectation gives an answer that is off by a factor of 1.6.<\/li>\n<li><strong>Rounding coordinates too early.<\/strong> Truncating 28.6139 to 28.6 can shift a result by several kilometres; keep at least four decimal places until the final step.<\/li>\n<li><strong>Treating the answer as road distance.<\/strong> Never present the haversine figure to a customer or in a delivery quote as the actual distance a vehicle will travel.<\/li>\n<li><strong>Mishandling the sign of differences.<\/strong> Because the differences are squared inside sine, sign errors often hide until you also make a second mistake; work carefully and keep negatives intact.<\/li>\n<\/ul>\n<h2>Best Practices and Expert Recommendations<\/h2>\n<ul>\n<li><strong>Source coordinates from authoritative Indian data.<\/strong> For anything official, pull latitude and longitude from ISRO&#8217;s Bhuvan portal or Survey of India rather than a random web listing.<\/li>\n<li><strong>Keep full precision until the end.<\/strong> Carry six or more decimal places through the intermediate steps and round only the final distance.<\/li>\n<li><strong>Use atan2, not asin, for c.<\/strong> The atan2 form is more numerically stable near antipodal points and avoids domain errors.<\/li>\n<li><strong>Apply a circuity factor for road estimates.<\/strong> Multiply haversine by roughly 1.2&ndash;1.3 for Indian highways when you need a rough driving distance.<\/li>\n<li><strong>Validate with a calculator.<\/strong> Always cross-check a hand calculation with a trusted online tool before using it in production.<\/li>\n<li><strong>Choose the right model for the job.<\/strong> Use haversine for quick estimates and the ellipsoidal Vincenty method when survey-grade accuracy is required.<\/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\/haversine-formula-explained\/\">Haversine Formula Explained with Examples<\/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>Is haversine distance the same as road distance in India?<\/strong><br \/>No. Haversine gives the straight-line, great-circle distance across the Earth&#8217;s surface. Actual road distances are always longer because highways curve around terrain, rivers, and settlements &mdash; typically 20&ndash;30% longer on Indian routes.<\/p>\n<p><strong>What Earth radius should I use for kilometres?<\/strong><br \/>Use the mean radius of 6,371 km. Some tools use 6,378 km (equatorial) or 6,356 km (polar), but 6,371 km is the standard mean value and is accurate enough for all everyday Indian use cases.<\/p>\n<p><strong>Where can I get accurate coordinates for Indian locations?<\/strong><br \/>ISRO&#8217;s Bhuvan geoportal, operated by the National Remote Sensing Centre, and the Survey of India are the authoritative national sources. Consumer maps also work well for one-metre-level accuracy, which is now freely usable under the 2021 Geospatial Guidelines.<\/p>\n<p><strong>Why do I need to convert degrees to radians?<\/strong><br \/>The sine, cosine, and arctangent functions in the haversine formula are defined for radians. If you input degrees directly, every trigonometric step returns an incorrect value and the final distance is meaningless.<\/p>\n<p><strong>How accurate is the haversine formula?<\/strong><br \/>It is accurate to within about 0.5% because it treats the Earth as a sphere rather than an ellipsoid. For city-to-city distances in India this error is only a few kilometres, which is well within acceptable limits for estimates and pricing.<\/p>\n<p><script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"Is haversine distance the same as road distance in India?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. Haversine gives the straight-line, great-circle distance across the Earth's surface. Actual road distances are always longer because highways curve around terrain, rivers, and settlements, typically 20-30% longer on Indian routes.\"}},{\"@type\":\"Question\",\"name\":\"What Earth radius should I use for kilometres?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Use the mean radius of 6,371 km. Some tools use 6,378 km equatorial or 6,356 km polar, but 6,371 km is the standard mean value and is accurate enough for all everyday Indian use cases.\"}},{\"@type\":\"Question\",\"name\":\"Where can I get accurate coordinates for Indian locations?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"ISRO's Bhuvan geoportal, operated by the National Remote Sensing Centre, and the Survey of India are the authoritative national sources. Consumer maps also work well for one-metre-level accuracy, now freely usable under the 2021 Geospatial Guidelines.\"}},{\"@type\":\"Question\",\"name\":\"Why do I need to convert degrees to radians?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The sine, cosine, and arctangent functions in the haversine formula are defined for radians. If you input degrees directly, every trigonometric step returns an incorrect value and the final distance is meaningless.\"}},{\"@type\":\"Question\",\"name\":\"How accurate is the haversine formula?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"It is accurate to within about 0.5% because it treats the Earth as a sphere rather than an ellipsoid. For city-to-city distances in India this error is only a few kilometres, well within acceptable limits for estimates and pricing.\"}}]}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to calculate haversine (great-circle) distance step by step with real Indian city examples like Delhi to Mumbai. Free formula guide and calculator.<\/p>\n","protected":false},"author":1,"featured_media":832,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[31],"tags":[],"class_list":["post-794","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>How to Calculate Haversine Distance (Step by Step)<\/title>\n<meta name=\"description\" content=\"Learn how to calculate haversine (great-circle) distance step by step with real Indian city examples like Delhi to Mumbai. Free formula guide and calculator.\" \/>\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\/how-to-calculate-haversine-distance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Calculate Haversine Distance (Step by Step)\" \/>\n<meta property=\"og:description\" content=\"Learn how to calculate haversine (great-circle) distance step by step with real Indian city examples like Delhi to Mumbai. Free formula guide and calculator.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-01T00:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-794-how-to-calculate-haversine-distance.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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/\"},\"author\":{\"name\":\"mundliya\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/#\\\/schema\\\/person\\\/2ec0a40ee547d8717205703b12c30cb4\"},\"headline\":\"How to Calculate Haversine Distance (Step by Step)\",\"datePublished\":\"2026-08-01T00:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/\"},\"wordCount\":1496,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/dtk-featured-794-how-to-calculate-haversine-distance.png\",\"articleSection\":[\"Travel &amp; Automotive\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/\",\"url\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/\",\"name\":\"How to Calculate Haversine Distance (Step by Step)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/dtk-featured-794-how-to-calculate-haversine-distance.png\",\"datePublished\":\"2026-08-01T00:30:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/#\\\/schema\\\/person\\\/2ec0a40ee547d8717205703b12c30cb4\"},\"description\":\"Learn how to calculate haversine (great-circle) distance step by step with real Indian city examples like Delhi to Mumbai. Free formula guide and calculator.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/#primaryimage\",\"url\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/dtk-featured-794-how-to-calculate-haversine-distance.png\",\"contentUrl\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/dtk-featured-794-how-to-calculate-haversine-distance.png\",\"width\":1200,\"height\":675,\"caption\":\"Illustration for How to Calculate Haversine Distance (Step by Step) - DigiToolkit\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/how-to-calculate-haversine-distance\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/digitoolkit.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Calculate Haversine Distance (Step by Step)\"}]},{\"@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":"How to Calculate Haversine Distance (Step by Step)","description":"Learn how to calculate haversine (great-circle) distance step by step with real Indian city examples like Delhi to Mumbai. Free formula guide and calculator.","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\/how-to-calculate-haversine-distance\/","og_locale":"en_US","og_type":"article","og_title":"How to Calculate Haversine Distance (Step by Step)","og_description":"Learn how to calculate haversine (great-circle) distance step by step with real Indian city examples like Delhi to Mumbai. Free formula guide and calculator.","og_url":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/","article_published_time":"2026-08-01T00:30:00+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-794-how-to-calculate-haversine-distance.png","type":"image\/png"}],"author":"mundliya","twitter_card":"summary_large_image","twitter_misc":{"Written by":"mundliya","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/#article","isPartOf":{"@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/"},"author":{"name":"mundliya","@id":"https:\/\/digitoolkit.in\/blog\/#\/schema\/person\/2ec0a40ee547d8717205703b12c30cb4"},"headline":"How to Calculate Haversine Distance (Step by Step)","datePublished":"2026-08-01T00:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/"},"wordCount":1496,"commentCount":0,"image":{"@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/#primaryimage"},"thumbnailUrl":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-794-how-to-calculate-haversine-distance.png","articleSection":["Travel &amp; Automotive"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/","url":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/","name":"How to Calculate Haversine Distance (Step by Step)","isPartOf":{"@id":"https:\/\/digitoolkit.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/#primaryimage"},"image":{"@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/#primaryimage"},"thumbnailUrl":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-794-how-to-calculate-haversine-distance.png","datePublished":"2026-08-01T00:30:00+00:00","author":{"@id":"https:\/\/digitoolkit.in\/blog\/#\/schema\/person\/2ec0a40ee547d8717205703b12c30cb4"},"description":"Learn how to calculate haversine (great-circle) distance step by step with real Indian city examples like Delhi to Mumbai. Free formula guide and calculator.","breadcrumb":{"@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/#primaryimage","url":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-794-how-to-calculate-haversine-distance.png","contentUrl":"https:\/\/digitoolkit.in\/blog\/wp-content\/uploads\/2026\/07\/dtk-featured-794-how-to-calculate-haversine-distance.png","width":1200,"height":675,"caption":"Illustration for How to Calculate Haversine Distance (Step by Step) - DigiToolkit"},{"@type":"BreadcrumbList","@id":"https:\/\/digitoolkit.in\/blog\/how-to-calculate-haversine-distance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/digitoolkit.in\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Calculate Haversine Distance (Step by Step)"}]},{"@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\/794","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=794"}],"version-history":[{"count":2,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/posts\/794\/revisions"}],"predecessor-version":[{"id":815,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/posts\/794\/revisions\/815"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/media\/832"}],"wp:attachment":[{"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/media?parent=794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/categories?post=794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitoolkit.in\/blog\/wp-json\/wp\/v2\/tags?post=794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}