|
 |
Embed SMR maps into your own website
by CXL - Technology May 29, 2007
Did you know you can embed any SMR maps into your own web page? Look for the fields at the bottom of every map. Just like YouTube, you simply cut and paste the Embed field and add it to any website, blog or forums. Your forum administrator may have to allow the use of iframes. Here is an example (scroll down to last post on the page) from one of the local moto clubs around San Diego. Also if you run a motorcycling website, we've love to help map your rides. We can even create custom maps for your site. Check out our maps for Motoquest (scroll to the middle of the page). As you can see the maps are of different dimensions and the mouseovers are in Spanish.
For website developers, we also have a HTTP-based service that returns a list of rides and URLs for your usage. You can retrieve a list of rides from SMR with a simple HTTP GET request (in the future we will likely offer a "real" web service using XML-RPC or SOAP). To use this service, simply perform a get request to http://www.sundaymorningrides.com/ws/get_ride_list_http.cgi with a combinations of three options: state, type and/or country. Here's a Perl example that covers the possibilities:
#!/usr/bin/perl
use LWP::Simple;
# Get US road rides from state of Maryland (MD)
$r0 = get("http://www.sundaymorningrides.com/ws/get_ride_list_http.cgi?state=MD&type=road");
print "$r0 \n";
# Get US adventure rides from state of Colorade (CO)
$r1 = get("http://www.sundaymorningrides.com/ws/get_ride_list_http.cgi?state=CO&type=adventure");
print "$r1 \n";
# Get all longdistance rides
$r2 = get("http://www.sundaymorningrides.com/ws/get_ride_list_http.cgi?type=longdistance");
print "$r2 \n";
# Get all rides from spain (country name should be all lower case)
$r3 = get("http://www.sundaymorningrides.com/ws/get_ride_list_http.cgi?country=spain");
print "$r3 \n";
|
The service will return a listing of rides in the the following format:
Ridename -- URL
# ./client.pl
Elkridge-Purcellville -- http://www.sundaymorningrides.com/road/7842101
Merrill to Bloomington (Savage River Rd) -- http://www.sundaymorningrides.com/road/6778274
Denton to Taylors Island (SR16) -- http://www.sundaymorningrides.com/road/3799834
Catoctin Mountains -- http://www.sundaymorningrides.com/road/7364301
One-Day Ride in Rolling Hills of Central MD -- http://www.sundaymorningrides.com/road/3227117
2006 Great Divide Ride (Day 6) Rawlins to Steamboat -- http://www.sundaymorningrides.com/adventure/8345006
2006 Great Divide Ride (Day 8) Salida to Chama -- http://www.sundaymorningrides.com/adventure/8345008
2006 Great Divide Ride (Day 7) Steamboat to Salida -- http://www.sundaymorningrides.com/adventure/8345007
Saddle Sore 1000 -- http://www.sundaymorningrides.com/longdistance/1234567
1000 miles around Colorado -- http://www.sundaymorningrides.com/longdistance/8685670
Vancover to Banff and Jasper Loop -- http://www.sundaymorningrides.com/longdistance/ca9777880
Canadian Rockies -- http://www.sundaymorningrides.com/longdistance/ca1037788
Lewis and Clark Trail -- http://www.sundaymorningrides.com/longdistance/714797
Retirement Ride -- http://www.sundaymorningrides.com/longdistance/8117626
Baja Peninsula -- http://www.sundaymorningrides.com/longdistance/mx5141977
Tok, AK to Dawson Creek, BC (Alaska Hwy) -- http://www.sundaymorningrides.com/longdistance/ca505803
Circumnavigate Lake Michigan -- http://www.sundaymorningrides.com/longdistance/9665430
Elche de la Sierra Loop -- http://www.sundaymorningrides.com/spain/6156486
Porrera Figure 8 Loop -- http://www.sundaymorningrides.com/spain/7546956
Portbou to Grifeu (N-260) -- http://www.sundaymorningrides.com/spain/1234567
|
If you have a riding club or forum, and you'd like to enhance it with your own personalized ride mapper, we'd love to explore opportunities to build technical partnerships. We are also eager to explore any services or tools that can help SMR improve the quality of its service.
• Permalink •
Add to Technorati Favorites •
Digg this •
|
|
Click here to Advertise with SMR!
|
|