Excel Function to get distance between two latitudes and longitudes from Bing Geocoding API

Exceluser15

New Member
Joined
Jul 17, 2015
Messages
4
Hello ,

I require some help in writing an excel function that calculates the distance between 2 lat and long of addresses using BING Geocoding API and returns the value in a new column.

So, basically, the excel to connect to www.dev.virtualearth.net and get me the results

Ex: Latlong 1 Latlong 2 Distance

37.5583883 -122.0593183 37.57257 -122.04792 ????

I need the distance to get calculated automatically for >1000 rows of lat and long of addresses.

Can someone help me with a code for this?

Thank you so much,
ExcelUser15
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to the forum!

Are you asking for a solution or for a solution using your approach?

If the latter, the link is invalid for me. If the former, no API is needed. See: Latitude And Longitude
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top