batch Geocode

Martynrbell

New Member
Joined
Apr 11, 2016
Messages
35
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:

Some videos you may like

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

mole999

Moderator
Joined
Oct 23, 2004
Messages
10,339
Office Version
2019, 2016, 2013
Platform
Windows
doogal has limits of the amount of data it will process for you
 

Martynrbell

New Member
Joined
Apr 11, 2016
Messages
35
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.
 

mole999

Moderator
Joined
Oct 23, 2004
Messages
10,339
Office Version
2019, 2016, 2013
Platform
Windows
i would have thought ordnance survey would have the best data being that a postcode is a big beast
 

Watch MrExcel Video

Forum statistics

Threads
1,099,573
Messages
5,469,473
Members
406,655
Latest member
pwilson06

This Week's Hot Topics

Top