I've created a new mapping program that gives you great flyovers of your chosen destinations, step by step directions on how to get there, and map modes galore. It's a port from the routing features of an older program, which has been my goto tool for planning out road trips. Now I have this one.
Check it out: RouteQue
I also posted this on Facebook for the hell of it, and FB appends it's tracking code on every link you include in your post.
So, I wrote a little bit of javascript that detects if there is garbage at the end of the url. The only thing that should be there is nothing, or a route key in the form of ?r=.....
Here's what it does:
• Get any parameters at the end
• If any exist
• If its not my route key parameter
• If the browser can do it (most can)
• Reload the program with no garbage
Here's the code:
const parameters = window.location.search;
if (parameters) {
if (parameters.substring(2,1) !== 'r') {
if (history.pushState) {
history.pushState({}, null, 'http://www.routeque.com/');
}
}
}