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 124 | Next

Raymond Yee

"Pro Web 2.0 Mashups: Remixing Data and Web Services"

google.com/maps?saddr={source-address}&daddr=
{destination-address}
to generate this:
http://www.google.com/maps?saddr=2855+Telegraph+Ave,+Berkeley,+CA+
94705&daddr=1401+N+Shoreline+Blvd,+Mountain+View,+CA+94043
Although driving directions have recently been added to the Google Maps API,12 it is
currently not possible to use the API to create directions to avoid highways, something
you can do by using the dirflg=h parameter.13 Hence, you can easily generate a scenic
route for myself between the Apress offices and the Computer Museum, while avoiding
the API altogether:
http://www.google.com/maps?saddr=2855+Telegraph+Ave,+Berkeley,+CA
+94705&daddr=1401+N+Shoreline+Blvd,+Mountain+View,+CA+94043&dirflg=h
It pays to know the URL language of an application!
??? You can use Google Maps as a nonprogrammer??™s geocoder. Center the map on the
point for which you want to calculate its latitude and longitude, and read the values
off the ll parameter. If the ll parameter is not present, you can double-click the center
of the map, just enough to cause the map to recenter on the requested point.
CHAPTER 2 ?–  UNCOVERING THE MASHUP POTENTIAL OF WEB SITES 52
12. http://www.google.com/apis/maps/documentation/#Driving_Directions
13. http://groups.google.com/group/Google-Maps-API/browse_thread/thread/279ee413e4e0309/
0dabfb71863af712?lnk=gst&q=avoid+highway&rnum=2#0dabfb71863af712
Amazon
Amazon is the third major example in this chapter.


Pages:
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136