Google Maps parameters

2 views
Skip to first unread message

rich_wagner

unread,
Aug 23, 2007, 10:33:57 AM8/23/07
to iPhoneWebDev
I did some testing of the Google Maps parameters from <a> links. On
the positive side, you can specify a descriptive label using the +
(Label+Text) parameter. However, you cannot use the t= parameter to
specify the Satellite map, the z= parameter to indicate the map zoom
level, layer=t to turn on the Traffic display, and so on. (They are
ignored.) Since the support for these capabilities are already inside
of the Maps.app, let's hope that this part of the Google Maps API is
opened soon.

djMax

unread,
Aug 24, 2007, 7:05:18 AM8/24/07
to iPhoneWebDev
Can you explain the Label+Text thing a bit more? Perhaps an example
URL? I've been passing a GeoRss feed as the q param to get a title,
but I still can't get a phone number like google does for their own
results.

Christopher Allen

unread,
Aug 24, 2007, 3:30:48 PM8/24/07
to iphone...@googlegroups.com

I have added this to the iPhoneWebDev FAQ at

http://www.iphonewebdev.com/faq.shtml#faq36-text

4. Map Questions

Q: How does a web page open a map in the internal map application?

A: Any URLs in your html beginning with the text
http://maps.google.com/maps? will instead of opening the web page be
coerced to be displayed in the iPhone's internal map application.

Q: How do I use any of the special map features such as satellite maps?

A: The built-in iPhone application currently ignores many map?
parameters. You can use query, location, directions, and specify a


descriptive label using the + (Label+Text) parameter. However, you
cannot use the t= parameter to specify the Satellite map, the z=
parameter to indicate the map zoom level, layer=t to turn on the

Traffic display, and so on. [iPhoneWebDev Discussion at
http://groups.google.com/group/iphonewebdev/browse_thread/thread/fa6e9ccafc2385
].

-- Christopher Allen

rich_wagner

unread,
Aug 25, 2007, 1:06:14 AM8/25/07
to iPhoneWebDev
djMax,

Sure, check out the following a link:

<a class="cuiServiceButton" target="_self" href="http://
maps.google.com/maps?q=1000+Massachusetts+Ave,+Boston,+MA+(Jack's
+Office)">Map To Office</a>

In Google Maps, the label is "Jack's Office".

- Rich

unowen

unread,
Aug 27, 2007, 9:26:20 AM8/27/07
to iPhoneWebDev
Also added to the Wiki: http://www.kudit.com/wiki/index.php/HTML#Google_maps

On Aug 23, 10:33 am, rich_wagner <richwagner.p...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages