SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 188 | Next

Richard Wagner

"Professional iPhone and iPod touch Programming: Building Applications for Mobile Safari"

However, you can specify a custom label by appending the URL with
+(Label+Text) , as shown in the following example:
+Armitage??™s+Office)???>Jack Armitage??™s Office
Figure 7-10 shows the custom label in Google Maps.
Figure 7-10: Customizing the Google Maps label
You can specify a location using latitude and longitude coordinates as well:
Jack??™s Summer Retreat
Chapter 7: Integrating with iPhone Services
169
To get directions, use the saddr= parameter to indicate the starting address and daddr= parameter to
specify the destination address, as shown in the following example:
+Boston,+MA???>Directions To Office
Figure 7-11 displays the map view when this link is clicked.
Figure 7-11: Programming driving directions
Google Maps on its public Web site has an extensive set of parameters. However, except where noted
previously, none of these are supported at this time. You cannot, for example, use the t= parameter to
specify the Satellite map, the z= parameter to indicate the map zoom level, or even layer=t to turn on
the Traffic display.


Pages:
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200