I quietly uploaded another update to the Ride Free Bike Map Creator last week. This update has been in the works for a long time and I’m glad to finally release it.

The biggest change is the complete removal of modes. Now when a waypoint is added to the map the directions are automatically printed below the main map exactly how they were in the print mode. To divide long routes into multiple pages click on the route where you want the division and the map below the main map will automatically split where the division was made. The division is marked on the main map by small white markers. The markers can be dragged to change where the route is divided or they can be clicked to remove them. Just like the waypoint markers.

Another noticable change is the new position of the elevation profile. The profile is now located below the map and spans the full width of the map for better display of the elevation. You can also click on the elevation profile to divide the route.

One of the side effects of the changes seems to be a slower load time for the elevation profile. I’m not sure how it will affect older computers so I’ve you’ve got one of those I’d love to get some feedback.

I’ve got several ideas for minor edits swirling around that I want to work on. On the list is an expanded selection of route stats, including total ascent/descent. I also want to change how the route is displayed when is is divided across multiple pages. I want to show the whole route with start and end markers for the section in focus.

Yet another quick update!

I fancied up the elevation profile by adding a marker on the map so you can see exactly where that monster hill is. Now when your mouse is over the elevation profile that green marker shows up on the map to tell where on the map that elevation corresponds to. When your mouse leaves the elevation profile the marker disappears.

I also fixed a bug that occurred when a set of directions couldn’t be calculated for what ever reason. Now when the error is permnent, like requesting bikeing directions from Seattle to Paris, an alert will pop-up and the offending marker will be removed. If the error is temporary, like gremlins ate the directions, they will automatically be re-requested. This should be invisible. It’s a hard bug to work on though because I can’t get a reliable source of Gremlins. If you see weird errors in the map; such as the wrong routes get deleted when you click on a marker; leave me a comment so I can investigate further.

It’s been a long time since I last looked at the site. Recently I got back into the swing of doing some updates and I want to give a quick rundown of the changes.

The most noticeable update can be seen on the Route Index page. I beefed up the index by adding the route description, author, and thumbnail to the index. I think it looks a lot better than it used to. The route author in the index is a link which will take you to a listing of routes by that author. Right now you will notice there are a lot of routes with the author “None.” The method I was using to save the authorship broke when I updated the page theme a while back. I’ve fixed that so routes created in the future will have the correct authorship.

I also fixed a bug dealing with loading routes outside of the countries where bike maps are supported. The bike maps wouldn’t load correctly because they weren’t being plotted with the plain directions. I’ve got that under control now so they should work as expected. If you find problems with the routes not loading try refreshing the page once or twice then contact me if it still doesn’t work.

Lastly, I’ve been doing some server side work as well. You will notice that the URL for the routes have changed from www.ridefreebikemaps.com/map-creator?route_id=59 to . This is a prelude to the next major update I’m working on. A lot of it will be under the hood things which will make sharing the routes on facebook or twitter easier and better. I think now is a good time to get that locked down because the season is approaching and I’d like to be able to share my routes with my friends. I [i]might[/i] even make a facebook or mobile app. I’ve never developed anything for those platforms so right now it’s a long shot.

You may have noticed that the elevation profile wasn’t showing up properly. The path used to calculate the elevation profile was only the last segment of the route. This was a hold over from the last big update where the route length limit was erased. Now the elevation profile is calculated over the course of the entire route.

In itself this update doesn’t really merit a post. I’m making the post because I wanted to point out the limitations of the elevation service. The elevation is calculated from 500 points equally spaced along your route. If the the points are very close and the profile will be very accurate. If the the points will be spread out and the route will be inaccurate.

According to signal detection theory you must sample twice as fast as the signal you are trying to measure. In other words, if you want to find the height of the peak of a hill you will need to take elevations that are separated by only half the width of the peak. So if the peak of the hill is only 50 feet across you will need to take elevation measurements every 25 feet. Given that there are at max 500 elevations taken from a route, that route will be only 2.367 miles long. This example may be a bit extreme but it illustrates how the elevations can be inaccurate.

Keep this in mind when bragging to friends. You can always say the hills were even taller because the app missed the true peak of the hill.

It’s been a long while since I coded something for the site. The other day in Bellingham was pretty cloudy so I started working on getting rid of the waypoint limit. Today I finally updated the site software so there is no longer a limit on the number of waypoints!

I got around the limit by chopping the route into sections and manipulating the sections individually. Prior to this I would recalculate the entire route if anything was changed. This also makes the directions results a bit better. In the prior version the route was calculated all at once and Google’s bike route finding algorithm would sometimes produce weird results. I don’t know why this was happening but I have a feeling that it was some effort to avoid bad streets for riding on and keep a forward direction. Now if you see weird routing going on you can just force the route by adding extra markers.

Even though I got this working really well there is still a couple of big bugs in the program. Most importantly the maps can’t be printed well. It has to do with the way that the map is displayed by the API so I can’t fix the problem. I can convert the printable maps to static images to get around the problem. I may do that, I’m not sure. Secondly adding pages to loop routes is pretty tough. When ever a route crosses out of and back into a page the app has difficulty with that. Especially if the route start and end points are in the page. I’m not sure how I’ll fix that guy but I am aware of the problem.

The weather up here in beautiful Bellingham, WA has turned really nice so I’ve been finding more and more reasons to get out and enjoy it. That means I’ve been working on the site a lot less lately. I did make a small bug fix a while ago that I just got around to posting.

Prior to the update saving routes in outside of the USA using the Members Only Map Creator would result in an error when one tried to load the route. The error had to do with loading biking directions in countries where it isn’t supported.

I also cleaned up the save message. Now the message is displayed with an infowindow on the map. The infowindow includes a success/failure message and a link to the newly created map. In the future I plan to make some sort of sharing happen from that window.

I’m not sure when I’ll get around to working on the site some more. I’ve got a few ideas kicking around but I’m also waiting for Google to fix some bugs on their end too. Specifically the 10 way-point limit and a printing bug. I haven’t mentioned the printing bug before. I just discovered it this weekend when I went to print out a route. The map now shows up as a background picture so most printers default to ignore the map when printing. I’ve read that you can get around this by changing some settings in the print dialog. While it probably works it isn’t a real solution.

I finally decided to add support for creating maps outside of the US. I heard feedback from a couple of users who wanted to use the program for routes outside of the US but were unable to. Today I found time to tackle the problem. The problem arose when I moved to the latest and greatest version of Google’s Maps API. I wrote the program so that it defaulted to using bicycling directions. Unfortunately this is only works for routes in the US, bicycling directions are not available internationally.

In effect this rolls back the directions to how the site used to function. The app asks Google for driving directions which avoid highways. The change in directions only occurs when the app asks for directions. If a route is already plotted you will need to change it slightly to get the new directions. This produces routes that are optimized for time and distance. The distance optimization is fine for cyclists but the time is not. The time is calculated using the assumption that one is driving a car so high speed roads are favored. This will create routes on roads that are undesirable for cycling. On the other hand, if you are a hardcore road rider this may work better for your routes. It will avoid all trails and put you on roads with the least amount of stops. I personally favor roads over trails but I have a good set of mental blinders for heavy traffic.

Lastly I’d like to thank April and Condor for the heads up about the problem. So go try out the new option and let me know what you think!

I’ve added a bunch of stuff to the site since I last made an announcement. I added facebook integration; an index of all the routes on the site; and a way for registered users to save routes to the site!

The facebook integration came out right after facebook announced their external like button and other features. If you see a route that you like you can click the like button and share it with your friends. You can also link your facebook account with the site which will let you bypass the login/registration process. This is accomplished by adding the Ride Free Bike Maps app to your facebook account. Currently I all I ask is for your email address for registration/account purposes. In the future I’ll add some functions that will post routes that you create on your wall/page.

The Route Index was something that I’ve had running on my box at home. It was a quick and dirty kind of project but I’m happy with the results. I think it looks a bit boring and a bit light on info about the routes. I’ll add some more info like date created and author information in the future, maybe even descriptions.

Most importantly I’ve added a page for registered users to contribute routes! To get there click the Members Only Map Creator link in the sidebar. If you are logged in it will take you to the page shown in the picture on the left. You can then create a route complete with name and description. After clicking Save Route the route will be inserted into the database with the information provided including who created it. Then the route will show up on the route index page. I’ve got a lot of ideas on how to improve this. Right now I feel like it really could use some more features but it works so I wanted to post it.

I’ve also got some bad news. Google changed their directions function so that the max way points you can have is now 10. So I had to add a function that cuts you off if you try to add more than the max. That also caused a lot of the routes on the site to break because they have too many way points. Hopefully I’ll be able to find a solution to fix the problem but it will mean reworking how my app handles directions. It could prove to be difficult.

Anyway stay tuned for some cool new features, I have a feeling that I’ll be able to add some neat stuff soon!

In honor of the newly added elevation profile I thought I’d post my in-town hill ride. I rode this several times last year in preparation for the . It’s a short ride that climbs every major hill in town. It’s not easy and it’s only fun if you enjoy masochistic cycling. Click ‘Print’ to see just how high and how steep those hills are!
Read the rest of this entry »

I just made another update to the bike map creator!

Elevation Profile: This is what happens when I don't have any good videos to watch on my computer.

I was thinking about using Google’s elevation service today so after work I checked it out. As it turns out it’s pretty easy to use. So after about 30 min. of tinkering I got elevation routes enabled! They show up when you move to print mode next to the overview of the route. Currently they don’t have a distance scale but I’ll add that in soon.

I’d also like change some of the behavior of the elevation profile as well. Currently you can click on the profile and it will tell you the exact elevation of that point. I’d like that point to also get highlighted on the map as well. I don’t know if this is even possible but if it is I’ll make it happen.

Hope you enjoy the new function!