Skip to content

karsonkevin2/Iowa-Tracks

 
 

Repository files navigation

This project visualizes every track in Iowa which has been mapped in OpenStreetMap. The vast majority of the tracks were identified and mapped by me using a combination of Overpass queries and the Strava Heatmap. View the data at https://karsonkevin2.github.io/Iowa-Tracks/

How to load custom data

  1. Add data to OpenStreetMap
  2. Fork this project
  3. Use Overpass Turbo to search for data. For this example,
[out:json][timeout:25];
{{geocodeArea:iowa}}->.searchArea;
(
  relation["leisure"="track"]["sport"="athletics"]["athletics"!~".*"](area.searchArea);
  relation["leisure"="track"]["sport"="running"]["athletics"!~".*"](area.searchArea);
);

out body;
>;
out skel qt;
  1. Select export and then download the GeoJSON file
  2. Use Mapshaper to convert the GeoJSON file into a TopoJSON file
  3. Rename both of the files to pools and overwrite the files in your forked directory
  4. Set up a page for the project, utilizing the GitHub tutorial
  5. Visit https://YOURNAMEHERE.github.io/REPOSITORYNAME/

Data assumptions

  • Not all objects have a surface=* tag. The rendering will be based on
    • No surface=* = tan
    • surface=concrete or surface=asphalt = grey
    • surface=tartan = ?color?
  • Rubberized tracks will be tagged surface=tartan and have a colour=*
    • colour=* will neatly map onto an html colour
    • If colour=navy color is remapped to blue
    • If colour=* is not specified, it will default to black
  • All tracks will be mapped as inner/outer relations. Tracks mapped as ways and more complicated relations will cause errors.

About

Website to display all running tracks in Iowa.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.6%
  • HTML 10.4%