VBA code to return travel time (Driving, walking & public transport) between 2 postcodes from google maps.

AshG1990

New Member
Joined
Sep 11, 2017
Messages
27
Can someone please help me with this.

I'm at my wits end, I've tried the whole Google API solution with major issues, code was correct but it just seemed to crash when running the macro, could step through it and it worked perfectly.

So I think my next avenue of attack is navigating Internet Explorer and entering my postcodes and retrieving the travel time this way. Can anyone help me as to the code to do this?

I know how to launch and navigate to a website but I struggle when searching for the correct div classes etc...

Trying to turn this around tonight if possible.

Any help will be much appreciated and thanks in advance.
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi RedBeard,

Thanks for the reply. Does this have any limits? As stated when I was using the Google API previously, I needed it to go through approximately 900 time calculations in which it'd just crash.

Any further help will be much appreciated.

Regards,

Ash
 
Upvote 0
Google limits the amount of free queries to the following:


100 elements per query.
100 elements per 10 seconds.
2 500 elements per 24 hour period.

So you probably tried with too much data.
 
Upvote 0
Yeah I think that's the issue, so do you know how I can do it via launching IE and doing it that way. As said in my post, I know how to launch it and navigate to maps but I'm not sure which tags to find and stuff.

Regards,

Ash
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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