batch Geocode

Martynrbell

New Member
Joined
Apr 11, 2016
Messages
38
Office Version
  1. 365
Platform
  1. Windows
Hi all,

im attempting to use the website
https://www.doogal.co.uk/BatchGeocoding.php

to take a list of postcodes in column A and either take the results straight from the website and paste into B and C.

Or download the csv File and import into the correct columns.

Sub geoCode()
Dim IE As Object
Dim doc As HTMLDocument
Dim objTag As Object
Lastrow = ThisWorkbook.Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
URL = "https://www.doogal.co.uk/BatchGeocoding.php"
IE.navigate URL
Do While IE.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
Set doc = IE.document
doc.getElementById("tabs").Click
For RowNo = 2 To Lastrow
doc.getElementById("postcodes").Value = ThisWorkbook.Worksheets("sheet1").Range("A" & RowNo)
Next
End Sub





This is as far as i can get before i run in to issues.

I cant seem to figure out how to control the rest of the website.

Any help would be appreciated.

Thanks in advance
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
doogal has limits of the amount of data it will process for you
 
Upvote 0
Im only planning on doing approx 150 or so a day for approximately 30 days.
Would be nice to see how its done.

I managed to get https://www.latlong.net working, but there is also a daily quota for that but a lot smaller.

I did read in the comments on doogal that there isnt a quota as such, the users just get throttled when breached.
 
Upvote 0
i would have thought ordnance survey would have the best data being that a postcode is a big beast
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,947
Members
448,534
Latest member
benefuexx

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