directions-examples: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
Google Maps | ===Google Maps=== | ||
Line 25: | Line 25: | ||
source (via firefox's dom inspector) | ===source=== (via firefox's dom inspector) | ||
<pre> | <pre> | ||
< | <table class="summary"> | ||
<tbody> | |||
<tr onclick="openInfoWindow('start')" class="milestone"> | |||
<td class="name link"> | |||
<a onclick="this.blur()" href="javascript:void(0)"> | |||
Start address | Start address | ||
: | </a> | ||
: | |||
50 California St | </td> | ||
San Francisco, CA 94111 | <td class="value" id="panel_start"> | ||
50 California St | |||
<br /> | |||
San Francisco, CA 94111 | |||
<br /> | |||
</td> | |||
End address | </tr> | ||
: | <tr onclick="openInfoWindow('end')" class="milestone"> | ||
<td class="name"> | |||
10 Market St | <a onclick="this.blur()" href="javascript:void(0)"> | ||
San Francisco, CA 94111 | End address | ||
</a> | |||
: | |||
</td> | |||
<td class="value" id="panel_end"> | |||
Distance: | 10 Market St | ||
<br /> | |||
0.2 mi (about 24 secs) | San Francisco, CA 94111 | ||
<br /> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="name"> | |||
Reverse directions | Distance: | ||
</td> | |||
<td class="value"> | |||
| 0.2 mi (about 24 secs) | ||
</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
<div class="reverse"> | |||
1 | <a onclick="return loadUrl(this.href)" href="/maps?f=d&hl=en&sll=37.79449,-122.395015&sspn=0.048969,0.081711&saddr=10+market+st,+san+francisco&daddr=50+california+st,+san+francisco"> | ||
. | Reverse directions | ||
</a> | |||
1. | </div> | ||
<div class="printspacer noscreen"> | |||
Head | | ||
east | </div> | ||
<table class="steps"> | |||
California St | <tbody> | ||
<tr onclick="showPolylineBlowup('d', 0)"> | |||
177 ft | <td class="num noprint"> | ||
<a href="javascript:void(0)"> | |||
1 | |||
</a> | |||
. | |||
</td> | |||
2 | <td class="num noscreen"> | ||
. | 1. | ||
</td> | |||
2. | <td id="panel_0" class="desc"> | ||
Head | |||
Turn | <b> | ||
right | east | ||
</b> | |||
Drumm St | from | ||
<b> | |||
149 ft | California St | ||
</b> | |||
- go | |||
<b> | |||
177 ft | |||
</b> | |||
3 | </td> | ||
. | </tr> | ||
<tr onclick="showPolylineBlowup('d', 2)"> | |||
3. | <td class="num noprint"> | ||
<a href="javascript:void(0)"> | |||
Turn | 2 | ||
left | </a> | ||
. | |||
Market St | </td> | ||
<td class="num noscreen"> | |||
0.1 mi | 2. | ||
</td> | |||
<td id="panel_2" class="desc"> | |||
Turn | |||
<b> | |||
right | |||
</b> | |||
at | |||
<b> | |||
</ | Drumm St | ||
</b> | |||
- go | |||
<b> | |||
149 ft | |||
</b> | |||
</td> | |||
</tr> | |||
<tr onclick="showPolylineBlowup('d', 4)"> | |||
<td class="num noprint"> | |||
<a href="javascript:void(0)"> | |||
3 | |||
</a> | |||
. | |||
</td> | |||
<td class="num noscreen"> | |||
3. | |||
</td> | |||
<td id="panel_4" class="desc"> | |||
Turn | |||
<b> | |||
left | |||
</b> | |||
at | |||
<b> | |||
Market St | |||
</b> | |||
- go | |||
<b> | |||
0.1 mi | |||
</b> | |||
</td> | |||
</tr> | |||
</tbody> | |||
</table> | |||
</pre> | |||
===MSN maps=== | |||
<pre> | |||
Start: 1600 Pennsylvania Ave NW, Washington, DC 20006 | |||
End: 15th St NW & Constitution Ave NW, Washington, DC 20004 | |||
Total Distance: 0.6 Miles | |||
Estimated Total Time: 4 minutes | |||
Directions Miles | |||
Start: Depart 1600 Pennsylvania Ave NW, Washington, DC 20006 on Local road(s) (East) < 0.1 | |||
1: Turn RIGHT (South) onto E Executive Ave NW 0.2 | |||
2: Turn LEFT (East) onto Alexander Hamilton Pl NW, then immediately turn RIGHT (South) onto 15th St NW 0.4 | |||
Map Image | |||
End: Arrive 15th St NW & Constitution Ave NW, Washington, DC 20004 | |||
</pre> | |||
===Source=== | |||
<pre> | |||
<table class="NoBorder" border="0" width="100%"> | |||
<tr> | |||
<td class="RTText"> | |||
<span class="RouteTableStartText"> | |||
Start: | |||
</span> | |||
Depart 1600 Pennsylvania Ave NW, Washington, DC 20006 on Local road(s) (East) | |||
</td> | |||
<td class="RTText" align="Right" width="40"> | |||
< 0.1 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="RTText"> | |||
<b> | |||
1: | |||
</b> | |||
Turn RIGHT (South) onto E Executive Ave NW | |||
</td> | |||
<td class="RTText" align="Right" width="40"> | |||
0.2 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="RTText"> | |||
<b> | |||
2: | |||
</b> | |||
Turn LEFT (East) onto Alexander Hamilton Pl NW, then immediately turn RIGHT (South) onto 15th St NW | |||
</td> | |||
<td class="RTText" align="Right" width="40"> | |||
0.4 | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td class="RTRow" align="Right" valign="Top" height="10"> | |||
| |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="RTRow"> | |||
| |||
<img style="border-color:#C7BCA2;" alt="Map Image" src="/I/spacer.gif" width="0" height="0" border="0" name="MapImg1"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="RTRowDark" valign="Top" colspan="2" rowspan="2"> | |||
<table class="NoBorder" border="0" width="100%"> | |||
<tr> | |||
<td class="RTText"> | |||
<span class="RouteTableEndText"> | |||
End: | |||
</span> | |||
Arrive 15th St NW & Constitution Ave NW, Washington, DC 20004 | |||
</td> | |||
<td class="RTText" width="40"> | |||
| |||
</td> | |||
</tr> | |||
</table> | |||
</pre> | </pre> | ||
Revision as of 09:42, 27 March 2006
directions examples
Per the microformats process, the first thing to do in the investigation/creation of a new microformat is to research existing examples of directions published on the Web.
examples
Get examples from Google Maps, MSN Maps, Yahoo Maps, and note implicit schemas.
Google Maps
Start address: 50 California St San Francisco, CA 94111 End address: 10 Market St San Francisco, CA 94111 Distance: 0.2 mi (about 24 secs) Reverse directions 1. 1. Head east from California St - go 177 ft 2. 2. Turn right at Drumm St - go 149 ft 3. 3. Turn left at Market St - go 0.1 mi
===source=== (via firefox's dom inspector)
<table class="summary"> <tbody> <tr onclick="openInfoWindow('start')" class="milestone"> <td class="name link"> <a onclick="this.blur()" href="javascript:void(0)"> Start address </a> : </td> <td class="value" id="panel_start"> 50 California St <br /> San Francisco, CA 94111 <br /> </td> </tr> <tr onclick="openInfoWindow('end')" class="milestone"> <td class="name"> <a onclick="this.blur()" href="javascript:void(0)"> End address </a> : </td> <td class="value" id="panel_end"> 10 Market St <br /> San Francisco, CA 94111 <br /> </td> </tr> <tr> <td class="name"> Distance: </td> <td class="value"> 0.2 mi (about 24 secs) </td> </tr> </tbody> </table> <div class="reverse"> <a onclick="return loadUrl(this.href)" href="/maps?f=d&hl=en&sll=37.79449,-122.395015&sspn=0.048969,0.081711&saddr=10+market+st,+san+francisco&daddr=50+california+st,+san+francisco"> Reverse directions </a> </div> <div class="printspacer noscreen"> </div> <table class="steps"> <tbody> <tr onclick="showPolylineBlowup('d', 0)"> <td class="num noprint"> <a href="javascript:void(0)"> 1 </a> . </td> <td class="num noscreen"> 1. </td> <td id="panel_0" class="desc"> Head <b> east </b> from <b> California St </b> - go <b> 177 ft </b> </td> </tr> <tr onclick="showPolylineBlowup('d', 2)"> <td class="num noprint"> <a href="javascript:void(0)"> 2 </a> . </td> <td class="num noscreen"> 2. </td> <td id="panel_2" class="desc"> Turn <b> right </b> at <b> Drumm St </b> - go <b> 149 ft </b> </td> </tr> <tr onclick="showPolylineBlowup('d', 4)"> <td class="num noprint"> <a href="javascript:void(0)"> 3 </a> . </td> <td class="num noscreen"> 3. </td> <td id="panel_4" class="desc"> Turn <b> left </b> at <b> Market St </b> - go <b> 0.1 mi </b> </td> </tr> </tbody> </table>
MSN maps
Start: 1600 Pennsylvania Ave NW, Washington, DC 20006 End: 15th St NW & Constitution Ave NW, Washington, DC 20004 Total Distance: 0.6 Miles Estimated Total Time: 4 minutes Directions Miles Start: Depart 1600 Pennsylvania Ave NW, Washington, DC 20006 on Local road(s) (East) < 0.1 1: Turn RIGHT (South) onto E Executive Ave NW 0.2 2: Turn LEFT (East) onto Alexander Hamilton Pl NW, then immediately turn RIGHT (South) onto 15th St NW 0.4 Map Image End: Arrive 15th St NW & Constitution Ave NW, Washington, DC 20004
Source
<table class="NoBorder" border="0" width="100%"> <tr> <td class="RTText"> <span class="RouteTableStartText"> Start: </span> Depart 1600 Pennsylvania Ave NW, Washington, DC 20006 on Local road(s) (East) </td> <td class="RTText" align="Right" width="40"> < 0.1 </td> </tr> <tr> <td class="RTText"> <b> 1: </b> Turn RIGHT (South) onto E Executive Ave NW </td> <td class="RTText" align="Right" width="40"> 0.2 </td> </tr> <tr> <td class="RTText"> <b> 2: </b> Turn LEFT (East) onto Alexander Hamilton Pl NW, then immediately turn RIGHT (South) onto 15th St NW </td> <td class="RTText" align="Right" width="40"> 0.4 </td> </tr> </table> </td> <td class="RTRow" align="Right" valign="Top" height="10"> </td> </tr> <tr> <td class="RTRow"> <img style="border-color:#C7BCA2;" alt="Map Image" src="/I/spacer.gif" width="0" height="0" border="0" name="MapImg1"> </td> </tr> <tr> <td class="RTRowDark" valign="Top" colspan="2" rowspan="2"> <table class="NoBorder" border="0" width="100%"> <tr> <td class="RTText"> <span class="RouteTableEndText"> End: </span> Arrive 15th St NW & Constitution Ave NW, Washington, DC 20004 </td> <td class="RTText" width="40"> </td> </tr> </table>