A Newbie Question on using Google Maps

58 views
Skip to first unread message

SteveC

unread,
Jun 25, 2007, 11:08:07 PM6/25/07
to Google Data APIs Objective-C Client Library Discussion
Folks;

Whew there is a lot to digest here and I'm feeling a bit like I did
when I first looked at the Cocoa frameworks....

Here's what I would like to do in my Cocoa app:

I have some components of an address (not necessarily everything) -
I'd like to be able to open either a webview in the app or a browser
page to the Google map (something like: [[NSWorkspace
sharedWorkspace] openURL:[NSURL URLWithString:googleMapString]]

Now in poking around a bit it looks like it may not be that simple.
Is there a query syntax to use like {http://maps.google.com?
country=us&zip=12345} (I can't seem to find such a thing but maybe?)

Maybe I would need to call a geocoder to get lat and long and then
make a service call??? Does the ObjC stuff support this?
Can someone take a moment and draft a few words to point my in the
right direction (or cite a code sample ;-) ) on how to do the right
thing in the ObjC lib.

Anyway Thanks A Bunch!
Steve

Greg Robbins

unread,
Jun 26, 2007, 2:36:07 AM6/26/07
to gdata-objec...@googlegroups.com
Google data API (GData) libraries are for exchanging low-level data
directly with Google servers. GData is not what you want for drawing
or interacting with Google Maps.

NSWorkspace's openURL: and WebKit are both appropriate ways to display
maps. You may want to manually generate your own html files to display
as the starting point for maps, too.

http://www.google.com/apis/maps/ has documentation for the Google Maps API.

http://www.youtube.com/watch?v=hYB0mn5zh2c is a video introduction to
the Maps API.

http://groups.google.com/group/Google-Maps-API is the discussion group
for the Maps API.

Reply all
Reply to author
Forward
0 new messages