Lab / 001
Find your own way.
A good trail doesn’t climb every slope head-on. Build one across a made-up mountain range or real elevation tiles, then compare how three search algorithms choose their way through the ground.
Simulated elevations · generated at a local scale
Elevation: Terrain Tiles on AWS Open Data (Mapzen; sources incl. USGS 3DEP, SRTM, GMTED, ETOPO1).
Elevation data credits
Terrain tiles include data from multiple public sources. Required source credits include: ArcticDEM, created from DigitalGlobe imagery and funded under NSF awards 1043681, 1559691, and 1542736; Australia, © Commonwealth of Australia (Geoscience Australia) 2017; Austria, © offene Daten Österreichs – Digitales Geländemodell (DGM) Österreich; Canada, information licensed under the Open Government Licence – Canada; Europe, Copernicus-funded EU-DEM; global ETOPO1, NOAA; Mexico, INEGI, Continental relief, 2016; New Zealand, Copyright 2011 Crown copyright (c) Land Information New Zealand and the New Zealand Government; Norway, © Kartverket; United Kingdom, © Environment Agency copyright and/or database right 2015; United States 3DEP and global GMTED2010 and SRTM, courtesy of the U.S. Geological Survey.
Source: Mapzen terrain attribution guidance. Tiles are for terrain visualization, not navigation.
01 / Terrain
Ground with a little character.
Generated terrain combines broad hills, ridged noise, domain warping, and erosion into a fictional height field; its elevations and 60 m cell scale are simulated. Real-place mode samples AWS Terrain Tiles in Terrarium format, so the colors and scale describe actual elevation data for the selected region.
Hypsometric color, hillshade, and index contours make the relief easier to read. Real tiles are cited below the map and in downloaded PNGs; they are terrain imagery, not hiking directions.
02 / Find a way
Three ways through the hills.
A* expands likely routes first, using a distance-and-climb estimate to guide its search. Dijkstra spreads outward by accumulated trail cost without a guess about the destination, while Greedy best-first follows the closest-looking direction and can trade optimality for fewer explored cells.
The grid connects each cell to its eight neighbors. A grade above your limit is blocked; otherwise horizontal distance, ascent, and steepness contribute to the cost. Compare runs each strategy on the same endpoints so you can inspect their routes, explored areas, and measurements side by side.

