Comments on: Calculate Distance Between Two Addresses using Google Maps API and PHP https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/ Web & Mobile App Development Company Tue, 25 Jun 2024 07:09:38 +0000 hourly 1 By: Ynaps https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-251412 Mon, 22 Apr 2024 02:43:42 +0000 https://www.codexworld.com/?p=642#comment-251412 Hi, I implemented this code and its working fine. Thank you.
But the problem here is, I am not getting the correct distance calculated through this function compared to google map distance. May I know the reason. I cross checked the latitude and longitude of source and destination of Google maps. Your response would be helpful

]]>
By: Paul https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-155819 Thu, 04 Nov 2021 21:13:50 +0000 https://www.codexworld.com/?p=642#comment-155819 Has anyone managed to apapt this to show Driving distance rather than point to point?

]]>
By: Harshana Malshan https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-142661 Thu, 17 Jun 2021 11:45:36 +0000 https://www.codexworld.com/?p=642#comment-142661 This was very helpful. Thank you and wish you all the best for do more great things.

]]>
By: Fatih https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-131113 Fri, 01 Jan 2021 11:55:49 +0000 https://www.codexworld.com/?p=642#comment-131113 It worked at a difficult time. thanks

]]>
By: Tamara https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-130043 Fri, 18 Dec 2020 07:39:48 +0000 https://www.codexworld.com/?p=642#comment-130043 Hi,

How would I make this work with the Google Maps distance matrix, to get a driving distance instead of a straight line?

Thanks

]]>
By: Emmanuel https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-120860 Mon, 10 Aug 2020 08:56:48 +0000 https://www.codexworld.com/?p=642#comment-120860 Please can you provide a tutorial to calculate the driving distance in PHP like the above?.

Please i will so much appreciate this, as my ongoing project really needs this functionality and have never worked on Google Map in the past.

]]>
By: karthick https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-101248 Thu, 02 Jan 2020 12:06:05 +0000 https://www.codexworld.com/?p=642#comment-101248 hai
how to implement php function to show total distance in miles by state wise mileage calculation like below
for eg
input field from location
input field destination location

Summary
From: Columbus, OH, USA
To: Miami, FL, USA
Duration: 17 hours 8 mins
State Distance (miles)
OH 113.3
WV 146.85
VA 71.25
NC 107.04
SC 228.05
GA 112.76
FL 376.12
Total 1155.38

i already done it in javascript function..but i am beginner level in php how to do this.

thanks
by
karthick

]]>
By: Mark https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-97471 Fri, 08 Nov 2019 16:00:15 +0000 https://www.codexworld.com/?p=642#comment-97471 Sahi Said…
this show only distance from point to point, what about driving distance?

April 18, 2017 at 1:17 PM
I have the same question. Can anybody help me/us with that?

]]>
By: Carlos Gonzalez https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-93038 Thu, 19 Sep 2019 00:40:03 +0000 https://www.codexworld.com/?p=642#comment-93038 Thanks a lot! work like charm, at first run.

]]>
By: CodexWorld https://www.codexworld.com/distance-between-two-addresses-google-maps-api-php/comment-page-1/#comment-68826 Mon, 12 Nov 2018 20:43:54 +0000 https://www.codexworld.com/?p=642#comment-68826 In reply to Dave.

This issue occurred because of the new Geocoding API Usage and Billing policy. Please see the details from here – https://developers.google.com/maps/documentation/geocoding/usage-and-billing

]]>