Solved

Retrieving geographical map coordinates

Posted on 2007-11-22
3
1,090 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

734 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