Instructions for Creating Random Routes from Random Starting Points
Random Starting Point
- Visit the Random Point Generator website.
- In "Search for place:", type in the name of your city, then "Find it"
- Choose a maximum distance. For Vancouver I use 10 kilometres.
- Click the "Get random point(s)" button.
- Preview the point on a map. The "See it on a map" button will load a new tab/window.
- If the random point is in the ocean or a river, I just select another point. If you think you might fear for your safety in the neighbourhood, select another point.
- Copy the data from "Results:" and massage the info so that you get a latitude and longitude.
- Paste the latitude and longitude into a Google Maps search. Make a note of the intersection.
- Visit the RouteLoops website.
- Click Set Start/End Location.
- Type in the intersection with the name of your city.
- Click Settings in the row above.
- Choose your preferred travel mode and directions, and unit system.
- Type in the distance you want to travel.
- Click "Create a Route of this Length"
- At this point, review the route and note the places where you cross the street. Visit Google Street View to determine whether you can cross safely. Also check to see if major routes have sidewalks to run on. If it's not safe to cross or it's a major route without sidewalks, you can drag the route in RouteLoops to safe intersections where it might cross at an uncontrolled intersection.
- To get a GPX file of the route, click "Import/Export", then the format you want. This will load the data into a new tab/window. Save the file and make sure you include a .gpx extension.
- Import this file into your route app of choice.
Hosting Your Map
If you convert the GPX file to geoJSON, you can host your randomly generated map on GitHub. Why would you? So people can fork it and make modifications, of course!
- Copy the text of the GPX file in the "Random Route" instructions above to your clipboard.
- Paste it into MapBox's toGeoJSON tool. Be sure to select GPX and not KML after you've pasted it in.
- Copy the resulting geoJSON to the clipboard.
- Create a Gist on gists.github.com and past the geoJSON.
- Give the filename a .geojson extension.
- Bonus points for styling the map using simplestyle options.