Logo MapTruth
MapTruth

MapTruth

By Page Telegram
💛 Support Page Telegram directly 💳 Donate
Current Version: 2.2.3
26
Unique Views
27
Free Downloads
0
Donation Downloads

MapTruth v2.2.3 (Android App now included)

Console-based navigation and mapping system By Page Telegram Volunteer Services, 2026 ---

Overview

MapTruth is a terminal-based navigation program written in FreeBASIC. It downloads road and point-of-interest data from OpenStreetMap, plots an interactive ASCII map, and provides turn-by-turn directions — all from a simple numbered menu. It works fully offline once map data has been downloaded. Highlights:
  • Local through statewide downloads with detail levels (streets vs highways)
  • Interactive ASCII map — zoom, POI browser, help overlay
  • Destination matching that accepts street names in any order and abbreviation style
  • POI search with relevance scoring, synonyms, and paging
  • Least-turns, shortest-distance, and walking routes
  • ---

    Requirements

  • Linux (amd64)
  • libtinfo6, libc6
  • curl or wget (for map downloads and geocoding)
  • Internet connection (for initial map download and address geocoding only)
  • magick (ImageMagick 7), convert (ImageMagick 6), or gm (GraphicsMagick) — optional, for PNG map export
  • About 1 GB RAM available for large (region/state) maps
  • ---

    Installation

    From .deb package

    bash
    sudo dpkg -i maptruth2.2.3-1amd64.deb
    

    From source

    bash
    fbc -lang qb maptruth.bas
    

    optional: package

    ./build-deb.sh 2.2.3-1
    Requires FreeBASIC compiler. ---

    Quick Start

    bash
    maptruth
    
  • Press 1 — enter a city, state, or address (e.g. Michigan, Bridgman MI)
  • Choose a detail level: Local / Metro / Region / State (highways only)
  • Select the correct geocoded place; for states prefer the bounding box
  • Press 2 / 3 — set Start and End
  • Press 4, 5, or 14 — calculate a route
  • Press 6 for the ASCII map, 7 for turn-by-turn directions
  • Entire states: use detail level 4 (State) so only major roads are imported (motorway through tertiary). Full street grids for a whole state are not practical; re-download metro areas at Local/Metro detail when you need neighborhood streets and dense POIs. ---

    Main Menu

    OptionDescription
    1Download / Update Map from OpenStreetMap
    2Set START Destination
    3Set END Destination
    4Route: Least Turns
    5Route: Shortest Distance
    6Show ASCII Map
    7Turn-by-Turn Directions
    8Search Points of Interest
    9Load Map from File
    10Load Demo Sample Map
    11Trip History
    12Bookmarks
    13Settings (Metric / Imperial)
    14Route: Walking
    0Exit
    ---

    Downloading a Map

    Place selection

    When you enter a city, state, or address, MapTruth queries Nominatim and displays up to 10 matching locations. Select the correct entry by number before the download begins.
    
     Multiple locations found - select one:
    
       1. Chicago, Cook County, Illinois, United States
       2. Chicago, Sangamon County, Illinois, United States
       ...
       0. Cancel
    
     Choice [1-10]:
    

    Coverage detail levels

    LevelNameRoadsPOIsDefault coverage
    1LocalAll streets (incl. service/livingstreet) + motorway/trunk/linksFull setRadius 7.5 km
    2MetroSame as LocalFull setRadius 25 km
    3RegionOmits service / livingstreetFull setRadius 75 km; optional place bbox
    4StateMotorway…tertiary + link ramps onlySparse (attractions, beach, park)Prefers place bounding box
    State/region downloads can use the Nominatim bounding box instead of a circle so an entire state or county fits without inventing a huge radius. Capacity is 2,000,000 nodes / 5,000,000 edges / 250,000 POIs. If a download hits the cap, MapTruth warns and suggests a smaller area or coarser detail level. ---

    ASCII Map

    
     MapTruth  [DemoCity]  S=Start  E=End  *=Route  @=POI  O=sel  zoom 1.0x  [I]=help
    (NORTH)_
    |                    *      E                                    |
    |               *  O                                         |
    |          *                                                 |
    |     S**                   @         @                        |
    |(SOUTH)_
     S: Main & 1st                         E: 4th & 5th
     ----------------------------------------------------------------------------
     POI 1/8: [Hospital] City Medical Center  420 m from Start
     ----------------------------------------------------------------------------
     [I]=help  [+/-]=zoom  [0]=reset  [<-][->]=POIs  [ENTER]=back  [S][E][R][P][X][T]
    

    Symbols

    GlyphMeaning
    SStart (bright red)
    EEnd (cyan/green)
    *Route (bright red/pink)
    @Point of Interest (yellow)
    OSelected POI (magenta)
    +Road intersection
    - \ .Road segments
    NorthAlways at the top
    Chicago-area maps also show block-number grid labels (e.g. 8N, 4W) and a State & Madison (0/0) reference note.

    Map actions

    KeyAction
    I / iToggle full keybinding legend overlay
    ← / → or , / . or H / LCycle on-screen POIs nearest → farthest
    + / =Zoom in
    - / _Zoom out
    0Reset zoom to default auto extent
    ENTER or QReturn to menu
    SSet Start destination
    ESet End destination
    RRecalculate route (last mode used)
    PList POIs on current route
    XExport map as PNG image
    TExport map as TXT file (optionally with turn-by-turn)
    Selected POI type, name, index (n/total), and distance appear in a text field under the map. Only POIs inside the current zoomed view are listed. POI cycle order: distance from Start when Start is set; otherwise distance from the map-view centre. Right arrow advances nearest → farthest; left reverses. The detail line shows from Start or from centre accordingly. Press I for the on-screen legend (press I again to return to the map). ---

    Routing Modes

    OptionModeDescription
    4Least TurnsMinimises road changes (fewest segments)
    5Shortest DistanceMinimises total distance (Dijkstra by edge length)
    14WalkingShortest path on foot; includes estimated walking time at 5 km/h
    The last-used routing mode is remembered and reused when pressing [R] from the ASCII map screen. ---

    Destinations

    Destinations can be set by:
  • Street address — geocoded via Nominatim (requires internet)
  • Road or node name — searched in loaded map data
  • POI name or type — e.g. hospital, coffee, grocery, beach
  • POI number — enter the number shown in the POI search list
  • When offline (or geocoding fails), MapTruth searches edge names with:
  • Street-type agnostic matching — Milwaukee finds North Milwaukee Avenue;
  • Milwaukee Ave and Milwaukee Avenue are treated identically
  • Any-order token matching — Ave Milwaukee N finds North Milwaukee Avenue
  • Abbreviation expansion — N, S, E, W expand to full directionals;
  • Ave/Blvd/Rd/Dr/Ln/Ct/Hwy/Pkwy expand to full type names
  • Scored road list — up to 10 unique road matches ranked by similarity;
  • up to 6 POI matches ranked by relevance; direct node number entry also accepted MapTruth warns if a geocoded address snaps to a node far outside the loaded map area and suggests downloading a map centred on that address. ---

    Turn-by-Turn Directions

    Directions merge consecutive segments on the same road, showing:
  • Turn instruction (Head North, Turn Left, Bear Right, etc.)
  • Street name and distance
  • Number of intersections passed
  • Nearby points of interest
  • Walking mode additionally shows estimated walking time at the end of the directions (distance ÷ 83 m/min ≈ 5 km/h). At the end of directions:
    KeyAction
    TExport to a dated .txt file
    CExport to a dated .csv file
    BBookmark the route
    Exported files are saved to ~/MAP/ with the filename format: YYYYMMDD-HHMMSS<start>to_<end>.txt ---

    PNG Map Export

    Press [X] from the ASCII map screen to export the current map view as a PNG image. Saved to ~/MAP/YYYYMMDD-HHMMSS_<city>.png. Tries converters in order: magick (ImageMagick 7), convert (ImageMagick 6), gm convert (GraphicsMagick). If none are found, a .ppm file is written instead — viewable with GIMP, feh, or eog.
    bash
    sudo apt install imagemagick   # for PNG export
    
    ---

    TXT Map Export

    Press [T] from the ASCII map screen to export the current ASCII map as a plain text file. Saved to ~/MAP/YYYYMMDD-HHMMSS<city>map.txt. If a route is loaded, MapTruth asks whether to include turn-by-turn directions in the same file. Answering Y appends the full step list, total distance, and (for walking mode) estimated walking time beneath the map. ---

    Trip History

    Trip history is saved automatically after every route calculation (up to 100 trips, newest first). Press 11 from the main menu to browse.
  • Selecting a trip number automatically loads the associated map if it is
  • saved in ~/MAP/ and not already current.
  • [B#] bookmarks the selected trip.
  • [N] / [P] page through history.
  • ---

    Bookmarks

    Bookmarks store Start/End address pairs. Press 12 from the main menu.
  • Selecting a bookmark number automatically loads the associated map if
  • saved in ~/MAP/ and not already current.
  • [A] adds a new bookmark manually.
  • [D#] deletes a bookmark.
  • ---

    Map Data

    Maps are stored as .dat files in ~/MAP/. The last loaded map is remembered and reloaded automatically on next startup. Loading a new map clears any previous Start, End, and route so stale node references from the old map cannot cause routing errors.
    LimitValue
    Nodes2,000,000
    Edges5,000,000
    POIs250,000
    If a download or load hits the cap, MapTruth warns and suggests a smaller area or detail level 3 (Region) / 4 (State). Maps saved under older limits (e.g. truncated at 500,000 nodes) should be re-downloaded under v2.2+. ---

    Points of Interest

    POI types include: amenity, shop, tourism, leisure (park/garden/beach/…), and natural (beach). Named beaches and parks mapped as OSM ways (not only nodes) are imported using their map center point — e.g. Weko Beach, MI. Search uses tiered relevance scoring (0–100%):
  • Exact name match → 100%
  • Name contains query → 90%
  • Exact type match → 85%
  • Type contains query → 80%
  • All query tokens found in name/type → 75%
  • Synonym prefix match (e.g. pharm → pharmacy) → 70%
  • Fuzzy match → up to 50%
  • Results are sorted by relevance score first, then by distance from Start. Up to 200 results are collected; displayed 16 per page with [N]/[B] navigation. Blank search lists all POIs sorted by distance from Start. Common synonyms are recognised: grocery, food, gas/petrol/fuel, hospital, pharmacy, restaurant, cafe/coffee, bar/pub, hotel, bank/ATM, park, school/college/university, church/worship, museum, shop, parking, toilet, library, post, police, gym, cinema/theatre, tourist, castle, beach, and more. From the results you can set the POI directly as Start or End. On the ASCII map, left/right arrows cycle on-screen POIs with a live detail field. ---

    Settings

    SettingDescription
    Distance unitsToggle between Metric (km / m) and Imperial (mi / ft)
    Preferences are saved to ~/MAP/prefs.cfg and loaded on startup. ---

    Files

    PathDescription
    ~/MAP/.datSaved map data
    ~/MAP/prefs.cfgUser preferences
    ~/MAP/trips.datTrip history (newest first, max 100)
    ~/MAP/bookmarks.datSaved bookmarks
    ~/MAP/lastmap.cfgLast loaded map path
    ~/MAP/YYYYMMDD-HHMMSS.txtExported directions or map (text)
    ~/MAP/YYYYMMDD-HHMMSS.csvExported directions (CSV)
    ~/MAP/YYYYMMDD-HHMMSS.pngExported map images (PNG)
    ~/MAP/YYYYMMDD-HHMMSS*_map.txtExported ASCII map with optional directions
    ---

    Technical Notes

  • Written in FreeBASIC -lang qb mode
  • OSM node IDs stored as DOUBLE (exact integers up to 2^53)
  • Node indices use LONG (32-bit) — up to 2,000,000 nodes
  • Download detail levels: Local / Metro / Region / State (highway skeleton + bbox)
  • Road graph includes motorway, trunk, primary…tertiary, and *_link ramps
  • Routing: Dijkstra with bidirectional adjacency lists and an active-set frontier
  • (least-turns cost=1 per segment; shortest/walking use edge distance)
  • Walking time estimate: distance ÷ 83 m/min (≈ 5 km/h)
  • Overpass import uses an OSM-id hash table for O(1) node lookups when building edges
  • Geocoding: Nominatim API (nominatim.openstreetmap.org)
  • Map data: Overpass API (overpass-api.de); larger timeouts for Region/State
  • PNG export: tries magick, convert, gm convert in order; PPM fallback if none found
  • PNG map orientation: north at top, matching screen display
  • Offline destination search: NormalizeStreet$ + StripStreetType$ + TokenMatchScore%
  • POI scoring: tiered 0–100% via POIScore%; top 200; sorted score↓ distance↑
  • No external libraries required beyond standard libc and libtinfo
---

License

GPL-2+ Copyright 2026 Page Telegram Volunteer Services

Download Options

Free Downloads: Source code and compiled binaries are freely available. Donations are appreciated!

Free Downloads

📦 Download Source Code

Compiled Binaries (Free Download)

💛 These binaries are free! If you find this software useful, please consider supporting the developer. 💳 Donate

Changelog

Changelog

All notable changes to MapTruth are documented here. ---

[2.2.3] — 2026-08-07

Changed

  • ASCII map POI browser order — left/right arrows (and ,/./H/L)
  • cycle on-screen POIs by distance: nearest → farthest from Start when Start is set; otherwise from the map-view centre. First selection is the closest POI. Detail field shows from Start or from centre as appropriate.
  • Version v2.2.3 / package maptruth2.2.3-1amd64.deb.
  • ---

    [2.2.2] — 2026-08-07

    Added

  • ASCII map zoom — + / = zoom in, - / _ zoom out, 0 resets to
  • default auto extent. Zoom factor shown in the map header (e.g. zoom 1.6x). View zooms about the current centre (route / destinations / city).
  • Keybinding legend overlay — press I / i on the map to toggle a
  • full help panel covering view/zoom, POIs, destinations, export, and symbols. Press I again to return to the map.

    Changed

  • Map prompt and header include [I]=help and zoom controls.
  • Version strings and package v2.2.2 / maptruth2.2.2-1amd64.deb.
  • ---

    [2.2.1] — 2026-08-07

    Added

  • ASCII map POI browser — left/right arrows (or , / . / H / L)
  • cycle POIs visible on the current map view.
  • Selected POI drawn as magenta O (other POIs remain yellow @).
  • Detail field under the map: type, name, index (n/total), and distance
  • from Start when Start is set.

    Changed

  • Map input uses interactive INKEY$ (no ENTER required for map keys).
  • Version v2.2.1.
  • ---

    [2.2.0] — 2026-08-07

    Added

  • Large-area / statewide downloads via coverage detail levels:
  • 1. Local — all streets + full POIs (default 7.5 km) 2. Metro — all streets + POIs (default 25 km) 3. Region — omits service/living_street; lighter load (default 75 km) 4. State — major highways only (motorway…tertiary + link ramps); sparse POIs; prefers Nominatim bounding box for whole states
  • Nominatim bounding box parsing; optional bbox coverage instead of radius
  • Parse/load progress messages for large graphs
  • Capacity % shown after download; clearer overflow guidance
  • Changed

  • Capacity raised to 2,000,000 nodes / 5,000,000 edges / 250,000 POIs
  • (was 500k / 1.2M / 100k). Needs roughly ~1 GB RAM for full tables.
  • Road queries now include motorway, trunk, and *_link ramps (were missing)
  • Overpass timeout / curl max-time increased for Region/State extracts
  • Overpass maxsize raised to 512 MB
  • Version v2.2.0
  • Notes

  • Entire-state maps should use detail level 4 (highways). Loading every
  • residential street statewide still exceeds practical limits and Overpass quotas. Re-download existing maps that hit the old 500k cap (e.g. large coastal extracts) with Region/State settings if they were truncated. ---

    [2.1.2] — 2026-08-07

    Fixed

  • Beaches / parks missing from POI search — Many real places (e.g. **Weko
  • Beach, Bridgman MI) are OSM ways** tagged natural=beach, not amenity nodes. The download query only fetched amenity/shop/tourism nodes and leisure=park|garden, so named beaches never appeared in POI results.

    Added

  • Overpass now also downloads:
  • - node[natural=beach], broader leisure nodes (beach, nature_reserve, …) - way[natural=beach], leisure/tourism ways (parks, beaches, attractions)
  • Uses out body center so area POIs get a lat/lon center point
  • Parser creates a synthetic POI node at each way’s center (name + type)
  • Node tag parsing accepts natural=* (e.g. beach) as a POI type
  • Changed

  • Version strings updated to v2.1.2.
  • Re-download the map (option 1) to pick up beaches; old .dat files do
  • not contain the new POIs. ---

    [2.1.1] — 2026-08-07

    Fixed

  • Equator / prime meridian dropped — Overpass node commit and Nominatim
  • parsing treated lat=0 / lon=0 as "missing", discarding valid coordinates. Uses explicit "got lat/lon" flags instead of <> 0 checks.
  • Numbered street names misread as OSM IDs — VAL("5th Avenue") is 5 in
  • BASIC, so names like 5th, 42nd, 1st were treated as raw OSM IDs and replaced with wrong edge labels. New IsNumericId% requires an all-digit string before treating a name as an OSM id.
  • POI index overflow — SetOneDest stored POI number in a 16-bit INTEGER
  • (MAXPOIS is 100,000). Widened to LONG.
  • TXT export printed to the screen — leftover PRINT USING in
  • ExportTurnByTurn wrote step numbers to the console during export.
  • Wrong menu help text — Trip History referred to as option 10 (is 11);
  • route hints omitted Walking option 14.
  • Offline POI pick used global IDs — list showed P47 etc. while roads
  • used sequential R1..R10. POIs now use sequential P1..P6 matching the prompt.
  • Corrupt edges on load — LoadMapData now drops edges whose endpoints
  • are outside 1..nCnt.
  • Non-road start/end — FindRoute rejects destinations that are not on a
  • road (nodeOK) instead of failing with a vague "no route".

    Improved

  • Dijkstra performance — adjacency lists (both directions) rebuilt in
  • RebuildNodeOK, plus an active-set Dijkstra so large city maps route in seconds instead of hanging on O(n²×e) scans.
  • Overpass parse performance — OSM id → index open-addressing hash
  • replaces per-edge linear node scan during way import.
  • SafeMapName$ — strips path-unsafe characters (/\:., etc.), not only
  • spaces; used for download save paths as well as bookmarks/trips.
  • Geocode URL encoding — encodes & # ? " % so addresses with those
  • characters do not break the Nominatim query.
  • Turn-by-turn labels — uses NodeLabel$ for From/To instead of raw OSM
  • node fields.

    Changed

  • Version strings updated to v2.1.1.
  • ---

    [2.1.0] — 2026-04-27

    Added

  • POI relevance scoring (POIScore%) — replaces binary POIMatch with a
  • tiered 0–100% scorer: exact name (100) → name contains (90) → type exact (85) → type contains (80) → all tokens found (75) → synonym prefix ≥3 chars (70) → fuzzy/2 (≤50). Score percentage shown per result.
  • POI paging — SearchPOI collects the top 200 scored matches, sorts by
  • relevance then distance from Start, and pages 16 results at a time with [N]/[B] navigation. Previously all results were printed in one block.
  • Street-type-agnostic offline destination matching — NormalizeStreet$
  • expands directional abbreviations (N→NORTH, NW→NORTHWEST, etc.) and street types (Ave→AVENUE, Rd→ROAD, Blvd→BOULEVARD, Dr→DRIVE, Ln→LANE, Ct→COURT, Pl→PLACE, Hwy→HIGHWAY, Pkwy→PARKWAY, Expy→EXPRESSWAY, and more). Queries are compared against normalised edge names so "Milwaukee Ave" and "Milwaukee Avenue" score identically, and bare "Milwaukee" still matches "North Milwaukee Avenue".
  • Any-order token matching (TokenMatchScore%) — splits the query into
  • space-delimited tokens and checks each appears anywhere in the target. "Ave Milwaukee N" normalises to the same tokens as "North Milwaukee Avenue" and scores 100%.
  • Scored road list in OfflinePickNode& — when geocoding is unavailable,
  • up to 10 unique road names are ranked by similarity (exact → contains → stripped exact → stripped contains → full-token match → partial-token → fuzzy), plus up to 6 POI matches ranked by POIScore%. The user selects R<n>=road, P<n>=POI, a direct node number, or ENTER to cancel.
  • StripStreetType$ helper — removes the trailing street-type word (AVENUE,
  • ROAD, BOULEVARD, etc.) from a normalised name for bare-name comparisons.

    Changed

  • POIMatch — reduced to a one-line wrapper: returns true if
  • POIScore(srch, ptyp, pnam) >= 50, keeping compatibility with callers.
  • FuzzyNodeSuggest — rewritten to search edge names (not node names which
  • contain raw OSM IDs), with normalisation and deduplication by unique road name.
  • Version bump — all in-program strings updated from v2.0 to v2.1.
  • ---

    [2.0.0] — 2026-04-27

    Added

  • Walking route (option 14) — new routing mode using shortest-distance
  • Dijkstra, labelled "Walking". Estimated walking time (distance ÷ 83 m/min, ≈ 5 km/h) is displayed after the route is found, at the end of turn-by-turn directions on screen, and in exported TXT files.
  • TXT map export ([T] on ASCII map screen) — exports the current ASCII
  • map grid to ~/MAP/YYYYMMDD-HHMMSS<city>map.txt with a header (city, node/edge/POI counts, legend). If a route is loaded, prompts "Include turn-by-turn directions? [Y/N]" and optionally appends the full step list, total distance, and walking time to the same file.
  • Multi-converter PNG export — ExportMapPNG now tries magick
  • (ImageMagick 7), convert (ImageMagick 6), and gm convert (GraphicsMagick) in order before falling back to .ppm. Eliminates silent failures on systems where only ImageMagick 7 or GraphicsMagick is installed.
  • ExportMapTXT() sub and matching DECLARE.
  • Fixed

  • PNG map vertically flipped — the pixel row loop in ExportMapPNG was
  • mapping grid row 1 (southernmost) to the top of the image, placing the NORTH label above south-facing content. Fixed by mapping dispRow(MAPH+2-gr) so the northernmost row lands at image row 2 (just below the NORTH border), matching screen orientation.
  • PNG export result always visible — replaced the timed Pause(3) with
  • CLS + header + "Press ENTER to continue" so the exported path or error message is never scrolled off screen before the user can read it.

    Changed

  • Main menu — option 14 "Route: Walking" added in the right column;
  • existing options 1–13 unchanged.
  • Mode label — "Mode: Shortest Distance" / "Mode: Least Turns" extended
  • with "Mode: Walking" in turn-by-turn display, TXT export header, and CSV export header.
  • ASCII map prompt — updated from [X]=PNG export to [X]=PNG [T]=TXT.
  • Version bump — all in-program strings updated from v1.0 to v2.0.
  • ---

    [1.0-5] — 2026-04-27

    Added

  • Geocode selection list — when downloading a map by keyword, Nominatim
  • returns up to 10 matches; a numbered list with full location descriptions is shown and the user selects the correct one before the download proceeds.
  • Auto-load associated map from bookmarks/trips — selecting a bookmark or
  • trip history entry now loads the saved .dat file for that city automatically if it exists in ~/MAP/, eliminating the need to manually load the map first.
  • PNG map export — press [X] from the ASCII map view to export the current
  • map as a PNG image (~/MAP/YYYYMMDD-HHMMSS_<city>.png). Requires ImageMagick convert; falls back to .ppm (viewable with GIMP, feh, eog) if not found.
  • SafeMapName$() — shared helper that converts city display names to safe
  • .dat filename components (spaces → underscores). Used by download, bookmark, and trip-history code paths.
  • currentMapPath shared variable — tracks the currently loaded .dat path
  • so bookmark/trip auto-load can skip redundant reloads.
  • grid() promoted to shared array — the 76×14 character grid built by
  • DrawMapGrid() is now accessible to ExportMapPNG().
  • Keyboard buffer fully drained — FlushKeys() added before all 26 INPUT
  • statements, eliminating keystroke rollthrough between screens.

    Changed

  • MAXNODES raised to 500,000 / MAXEDGES to 1,200,000 — previous limits of
  • 150,000 / 400,000 were insufficient for large metropolitan area downloads. ---

    [1.0-2] — 2026-04-26

    Added

  • Street grid block labels on ASCII map — Chicago-area maps (lat 41.5–42.1,
  • lon −88.1 to −87.2) display E/W block numbers above the top border and N/S block numbers at the right edge of labeled rows. Auto-scales step size to fit. After the bottom border, shows whether the 0/0 origin (State & Madison) is visible on the map or gives its distance and bearing from map centre.
  • Export turn-by-turn directions — press [T] or [C] at the end of
  • directions to save to ~/MAP/YYYYMMDD-HHMMSS<start>to_<end>.txt or .csv. CSV includes Step, Direction, Street, Distance, Intersections, POIs columns.
  • Bookmark from turn-by-turn screen — press [B] to bookmark the current
  • route without returning to the main menu.
  • NodeLabel$() helper function — null-safe, edge-name-fallback, typed-address-
  • fallback name resolver used everywhere node names are displayed or stored.
  • Node overflow warning — if the node cap is hit during a download, shows
  • exact excess count in red and suggests a proportionally smaller radius.
  • Destination reset on map load — loading any map (file, download, or demo)
  • now clears startNd, endNd, routeLen, and address strings so stale node indices from the previous map cannot cause routing errors.

    Changed

  • MAXNODES raised to 150,000 / MAXEDGES to 400,000 — previous limits of
  • 25,000 / 70,000 caused graph fragmentation on city-scale downloads, resulting in "no routes found" errors.
  • All node index types widened from INTEGER to LONG — FreeBASIC
  • INTEGER is 16-bit (max 32,767) in -lang qb mode. TEdge.efr/.eto, startNd, endNd, nCnt, eCnt, routePath(), wPrev(), loop variables, and function return types all widened to prevent silent overflow.
  • North at top — (NORTH) label moved to top border; (SOUTH) added to
  • bottom border. Map was never upside down but the label was contradictory.
  • Route * colour changed to bright red/pink (color 12).
  • Map header — removed "ASCII Map" / "Route Map" text; legend now shows
  • S in actual red and E in actual green inline in the header line.
  • Destinations shown below map — Start and End labels printed beneath
  • DrawMapGrid() in both ShowAsciiMap and ShowTurnByTurn.
  • Main menu labels — S: / E: replaced with Start: / End: in full,
  • coloured, using NodeLabel$() so raw OSM IDs are never displayed.
  • Bookmarks and trip history — all save/load paths now use NodeLabel$()
  • to store and display human-readable street names instead of numeric OSM IDs. BookmarkMenu reload searches edge names first, geocodes as fallback.
  • BrowseTrips reload — uses resolved node name field from trip record to
  • find start/end nodes by name search; geocodes typed address as fallback.

    Fixed

  • STRING * 32 null-byte padding bug — RTRIM$ does not strip CHR$(0),
  • causing numeric OSM IDs to appear in bookmarks, trip history, and exports. Fixed throughout with explicit INSTR(..., CHR$(0)) stripping.
  • ELSEIF on same line as IF...THEN in street-grid step-size selection —
  • not valid in -lang qb; rewritten as block IF/ELSEIF/END IF. ---

    [1.0-1] — 2026-04-26

    Added

  • Initial release.
  • Download map data from OpenStreetMap via Overpass API (curl or wget).
  • Geocode addresses via Nominatim; snap to nearest road node (nodeOK filter).
  • Warns when snap distance suggests address is outside loaded map area.
  • Dijkstra routing — Least Turns (cost=1 per segment) and Shortest Distance.
  • ASCII map display (76×14) with Bresenham line-drawing for edges.
  • DrawMapGrid() shared helper called from both map view and turn-by-turn.
  • Map zoom priority: route > destinations > POIs > full city extent.
  • S marker in bright red (color 12), E marker in green (color 11).
  • Yellow (color 14) map border using | and _ characters.
  • Turn-by-turn directions — merges consecutive same-road segments,
  • shows intersection count and nearby POIs per step.
  • FmtDist$() — metric (km/m) or imperial (mi/ft) formatter.
  • Pause() SUB replaces SLEEP to avoid keyboard buffer contamination.
  • Two-column main menu (TAB(32), ≤80 chars wide).
  • SetOneDest() — independent Start (option 2) and End (option 3) setters.
  • Direct POI number entry as destination.
  • POI search sorted closest-first when Start is set.
  • NearestNodeExcl() — avoids snapping Start and End to the same node.
  • Fuzzy name matching (FuzzyScore, FuzzyNodeSuggest, FuzzyPOISuggest).
  • Trip history — auto-saved after each route, browseable, bookmarkable.
  • Bookmarks — save, load, delete named address pairs.
  • Settings menu — metric/imperial preference saved to ~/MAP/prefs.cfg.
  • LoadMapData — space-skip token reader handles old double-space .dat files.
  • Download radius default 7,500 m (triple the original 2,500 m).
  • Demo sample map (AddSampleMap) — 5×4 grid with POIs, no download needed.
  • Works fully offline when .dat map files are present in ~/MAP/.
  • Last loaded map remembered in ~/MAP/lastmap.cfg and auto-loaded on startup.