Solved

Retrieving geographical map coordinates

Posted on 2007-11-22
3
1,086 Views
Last Modified: 2010-04-21
Dear Experts,

Is it possible to automaticly retrieve geographical map coordinates from a website (for example Google maps), so these coordinates can be added to an address in my Access Database?
I tried to retrieve coordinates by reading the status message of the Internet Explorer, but this also does not seem to be consistent.
Sometimes the coordinates are named, sometimes their not...
I used the following code :

Public Sub DownloadMapPoints(Straat As String, Plaats As String)

URL = "http://maps.google.com/maps?q=" & Straat & "+" & Plaats & "+Netherlands&hl=nl"

'Set IE Object
Dim ie As SHDocVw.InternetExplorer
Set ie = CreateObject("InternetExplorer.Application")
With ie
    .Navigate URL
    .TheaterMode = False
    .AddressBar = False
    .Visible = True
End With
Do While ie.Busy = True
    Pause 1 'Public sub pausing the code
Loop
Do While Not ie.StatusText Like "http://maps.google.com/maps?f=q*"
    VBA.SendKeys "+{TAB}", True
    Pause 1
Loop
             
MsgBox ie.StatusText
ie.Quit
Set ie = Nothing
   
End Sub

Using this code, sometimes the coordinates are named in the status text, sometimes their not.
Does anybody have any idea on how to retrieve the coordinates?

Thanks in advance.



0
Comment
Question by:jrameuwissen
3 Comments
 
LVL 7

Accepted Solution

by:
wittyslogan earned 250 total points
Comment Utility
this website might help:

http://www.worldwindcentral.com/link/
0
 
LVL 10

Assisted Solution

by:TOPIO
TOPIO earned 250 total points
Comment Utility
Your safest bet would be to use the google maps
API
http://www.google.com/apis/maps/
0
 
LVL 1

Author Closing Comment

by:jrameuwissen
Comment Utility
Thanks for your help. Sorry for the delay in response.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now