I am not a web developer so in advance please forgive my lack of
knowledge.

I am working on an applicationwhere the desired functionality is to
have users enter a street address, have that address geocoded and
display the result in browser on a Google map, all as the result of
the user entry.  The application is a Microsoft Access 2010 db and
coding is VBA.

Thanks to Peter De Baets, www.PetersSoftware.com, whose application
gcc2000.mdb introduced me to the Google Maps API and furnished
examples of geocoding addresses, and thanks to the Google Maps API
site (http://code.google.com/apis/maps/index.html) which explains the
parameters of static map display, I can build a string that represents
the URL I would like to locate, passing lat-lng pairs for center and
marker.  An example of such a string is:

strURL = "http://maps.googleapis.com/maps/api/staticmap?
maptype=hybrid&center=" & loc.Lat & "," & loc.lng & "&markers=" &
loc.Lat & "," & loc.lng & "&zoom=16&scale=2&size=600x800&sensor=false"

With latitude and longitude values substituted I can manually paste
this string into the address bar and Google will return a static map
centered on the l&l pair with a nice red indicator marking my target
location.  However, if I try to pass this same string as a parameter,
I get an error message that the map can not be displayed.  'Unable to
download staticmap from maps.googleapis.com'

I've tried using strURL as the address of a hyperlink, and issuing the
hyperlink.follow method for the hyperlink, and I've tried creating a
browser object and issuing 'browser.navigate strURL'.  Both methods
are equally unsuccessful.

It's obvious that I'm missing something.  I would appreciate any
suggestions that could point me in the right direction.  Thank you for
your replies.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to