Note: You can also open the help files in a separate tab here: boydsmaps.com/search/docs/
This tutorial will focus on Advanced/Floating Window mode in the desktop version of the search app. The CLI is also available on a phone, but is limited by the virtual keyboard and small screen. You can enable desktop mode manually in the preferences on large screen mobile devices if desired, like this iPad Pro in a keyboard case (desktop mode requires a physical keyboard).

But the floating window interface best used on a large screen, where there is plenty of room to view the map and the windows at the same time

Enabling the terminal (desktop mode): Click the preferences (gear) button in the dock, then click [Advanced] in the Features and Services section (going forward, unless specifically noted otherwise, we'll assume you're using desktop mode). Now click [Floating] in the Desktop Window Layout section. The fixed sidebar now becomes a floating Search Console window that you can move and resize as desired. The button on the left end of the dock will open the terminal window.
Enabling the terminal (mobile mode): Tap the preferences (gear) button in the dock, then tap [Advanced] in the Features and Services section. Scroll down to Additional Options and turn ON the TTY console interface switch. Now press the keyboard button. To access the terminal, press the UP button on the dock: the upper window becomes the terminal display.

Use the standard unix "man" command to access the built-in manual. We have adopted the simple, clean style of BSD 4.2 unix man pages, as they appeared in 1983.
Highlights of the boydsmaps BSD 4.2-inspired style
The command name is shown at the top on the right and left, with its manual section in parentheses. The same mono-spaced font is used throughout, with capitals for emphasis, consistent indentation and the standard NAME, SYNOPSIS, DESCRIPTION, EXAMPLES, SEE ALSO and BUGS sections. It's formatted for vintage 80 character x 24 line CRT terminals, such as the DEC VT-220. There are also some fun quirks that we've tried to respect, like double spaces following a period and quotes `in this style'.
The pager mimics the vintage /usr/ucb/more program to display man pages one screen at a time, with --More-- at the bottom in "standout mode". Press the space bar to view the next page, or [ Return ] to see the next line. Press [ Q ] to quit and return of the db $ prompt.
Here's a full list of available man commands.
man bmapos
man clear
man clip
man exit
man export
man find
man gui
man help
man intro
man list
man logout
man man
man report
man set
man tty
man types
man unset
Open the manual viewer in a new tab: boydsmaps.com/search/man/
You can also search for anything in the manual with the -k [ keyword ] option. The following command lists all man pages that reference the topic of "redirection"
man -k redirection
Now, this may be too cryptic for many (most?) people, but it's exactly the kind of thing that an AI can easily understand. They're just plain text files and the BSD 4.2 format is well known. So, you don't even need to understand this stuff yourself. Google can give you step-by-step instructions if you ask a question like: "How can I use the terminal at boydsmaps to find all the USGS Stream Gages in Ocean County, NJ and export them to a Garmin-compatible waypoint file?"
We tried that exact search and were impressed by the comprehensive answer. And this was before the man pages were even completed. We then used Gemini to help complete the full set and ensure they included everything needed to explain how the terminal works. Try it for yourself, Google/Gemini should be able to tell you whether boydsmaps has the kind of data you want and how to export it as .gpx files (compatible with most gps devices and apps) or just plain text for other purposes.
Zoom the map to an area of interest. Type this in the terminal
find
This is the command line equivalent of clicking the search button without typing anything. It finds all features within the current map view. Now, zoom the map out to show the full US view (click the [Clear] button one or more times until the view resets). Type this command in the terminal to find all features in the US with names containing washington
find name=washington
Finding features by name is the default, so this command will produce the same results
find washington
In addition to name, you can also search by feature type, county and state. For example: find all features in the District of Columbia with names containing washington
find washington state=dc
We could get even more specific and only show incorporated cities with names including washington in the District of Columbia
find washington type=incorporated state=dc
To find all US cities/towns with washington in their names, we can use the or symbol to search the three different feature types where people live
find washington type=incorporated|unincorporated|placename
All searches operate within geographic bounds called bounding boxes. These are just rectangular areas of the map and by default they're set to match your current map view. But you can specify any of four different options as part of a query.
find type=waterbody bbox=map
find type=waterbody bbox=pines
find type=waterbody bbox=ne
find type=waterbody bbox=us
The examples above set the bounding box to either the current map view, the Pine Barrens, the Northeast or the whole US. But the bounding box only specifies the area that will be searched. You can create more targeted results by specifying the state and county, for example
find type=waterbody county=ocean state=nj bbox=pines
find type=military state=nv bbox=us
This allows you to set default values for each database field see the current default values, simply type "set".
set
The following commands will limit all searches to the state of Maine, regardless of current map view.
set state=me
set bbox=ne
Settings are automatically saved and remain in effect until changed or reset. To reset any setting to the system default, use the unset command. You can also use "all" to reset everything to the system default
unset state
unset bbox
unset all
Use this special set command to format the list of search results in the terminal. The formatting string includes the names of each field to be displayed and the width of each column in characters. For example
set list="name:24 type:20 county:15 state:3"
There are also environment settings that control the overall behavior of the CLI. A couple of these are really "just for fun"; the first sets the terminal screen color to amber (blue and green are the other options). The second sets the system prompt to john@tty0 $ instead of the standard db $
set env:color=amber
set env:prompt="john@tty0"
Another environment variable determines the format of find command output. There are two options: list and report. List is the default and produces the columnar lists that we have seen so far here. But there is also a report format, which lists the value of each record's field on separate lines<>/p>
set env:output=list
set env:output=report
Try setting output to report and observe what happens. You can set a custom report format in similar fashion to the list format, but without the column widths. For example, this will create a report that only lists the feature name, type and state
set report="name type state"
A list of all feature types follows. When searching for features, quotes should be used for types that consist of multiple words, for example
find type="wildlife mgmt area"
The type field is like the others and defaults to "includes" search mode, so you can enter any substring that will uniquely identify the type. For example, this command will return the same results as the previous one
find type=wildlife
But watch out for unexpected results - these two searches will not return the same results!
find type="park/recreation"
find type=park
The substring "park" also matches "parking", so the second example will produce a list of parks mixed with parking lots!
The database consists of three distinct regions, each with its own feature density and types. The following feature types are found throughout the United States.
Incorporated
Unincorporated
Placename
Airport
Waterbody
Forest
Park/Recreation
Summit
Military Base / Reservation
Mountain Range
Geographic Feature Name
Point of Interest
Historical Feature
Stream/River
Ridge
Cliff
Valley/Canyon
Interstate Highway
US Highway
State Highway
The Northeastern United States has all of the features above, plus these additional types.
Hospital
Campgrounds
Landfill
Boat Launch
Wildlife Mgmt Area
Picnic Area
The database has extreme detail for the Pine Barrens of Southern New Jersey (where boydsmaps is located). The Pines include everything above, plus the following unique types.
Restroom
Cemetery
Fishing
Mining
Dam
School
Police
Bridge
Post Office
Gas Station
Wetland
Natural Heritage Site
Stream Gage
Rail Station
Benchmark
Trail
Parking
Unpaved Road
Minor Road
County Route
Exit
Use the cursor control keys on your keyboard to review your history. Press the UP key to see the previous command. Press UP repeatedly to browse through previous commands. Press DOWN to return to the current command line. To execute any command again, find it in your history and just press [Return]. You can also backspace and modify a command to run it again. This can save a lot of typing when used properly.
We have adapted the unix redirection syntax to allow terminal output to be displayed in a more user-friendly format. An important unix mantra is "everything is a file", which treats devices like files and places them in the /dev directory. This powerful concept from the early days of unix makes it simple to send the output of a command to printer instead of the terminal, for example, by redirecting the output to the printer device file. The buttons in the dock allow you to choose the contents of different windows and display them in the search console. The search results window can be referenced as /dev/w2. Try the following search, which will list all of the major airports in Texas
find type=airport state=tx bbox=us
Press the UP key and use the command history function to modify that command like this
find type=airport state=tx bbox=us > /dev/w2
The system responds with "11 records found (sent to /dev/w2)" and you should now see the list of airports in the search console window. But a very powerful variation on this same command will send the list to your POI collection (warning: this will erase any existing POI on the list, so use with care!)
find type=airport state=tx bbox=us > /dev/w8
There is an alternate form of this command called "append" that doesn't erase anything but just adds the new search results to your existing POI
find type=airport state=tx bbox=us >> /dev/w8
After adding POI to your collection, you can edit them in the usual way, by clicking their icons to remove them from the list. But these redirection commands are a powerful tool for building targeted lists of POI, which can then be exported as .gpx files with a single button click.
Because of the default way that keyboard input is handled on a web page, it was necessary to write our own keyboard drivers to properly emulate a traditional command line interface. Unfortunately, this breaks standard copy/paste operations, but we have developed the work-around of treating the system clipboard like a device file. So, the following command will have the effect of copying the list to the clipboard, where you can then paste it into any document
find type=airport state=tx bbox=us > /dev/clip
Pasting a command into the terminal requires redirecting the command line input to the clipboard. Here's a full example of how this works. For starters, just copy the following text to your clipboard the usual way, but don't paste anything yet.
find type=historical county=bucks state=pa bbox=us
Now type this into the terminal
< /dev/clip
After typing that, the system will just wait for you to paste something and eventually time out with an error if you don't. But notice how a [Paste] button has appeared next to the mouse pointer. Just click that button: the system responds with "[read 50 bytes from clipboard]" and the command that you copied will be executed. But here's a cool trick, copy this variation of that command to your clipboard the usual way
find type=historical county=bucks state=pa bbox=us > /dev/clip
Now use the same technique to redirect input to the clipboard and paste this new command into the terminal. This time you will get the following response from the system:
[read 62 bytes from clipboard]
4 records found (copied to clipboard)"
We have just sent a command round-trip to the clipboard. The system executed the search that you pasted into the command line, and then it placed the results back on the clipboard instead of displaying them in the terminal. You can now do a paste the usual way and add the results of your search to any document
Note: The advanced help file is still under construction: more documentation will follow