?
Solved

Retrieving geographical map coordinates

Posted on 2007-11-22
3
Medium Priority
?
1,094 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
wittyslogan earned 1000 total points
ID: 20335384
this website might help:

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

Assisted Solution

by:TOPIO
TOPIO earned 1000 total points
ID: 20336428
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
ID: 31427343
Thanks for your help. Sorry for the delay in response.
0

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

764 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