Solved

Retrieving geographical map coordinates

Posted on 2007-11-22
3
1,089 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
ID: 20335384
this website might help:

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

Assisted Solution

by:TOPIO
TOPIO earned 250 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

820 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