Story Technology Gemini

The hidden features of Google Maps and useful Bash scripting techniques

Technology
The brief

Google Maps offers a range of tools that go well beyond typing in an address and following directions. Users can tell the app what type of car they drive, choosing between gas, diesel, hybrid and electric engines, so that routing decisions suit the vehicle. Electric and plug-in hybrid owners can specify the plug or adapter their car requires, allowing the app to surface compatible charging stations along a route, which it marks as working with that specific car. These settings are found under Settings > Your vehicles.

Route preferences can also be adjusted. Under Settings > Navigation, toggles in the Route options section let drivers avoid tolls, ferries or highways, which may suit someone seeking a scenic or cheaper route, or wanting to steer clear of freeway speeds. Setting a home address allows a single tap to start directions home, and users with the Gemini assistant enabled can say "navigate home" to set the route. None of these features require a new app or a subscription, as they are built directly into Google Maps.S1

Timing is another area where the app can help. Google Maps estimates arrival times based on the chosen route, and on iPhone the "Set a reminder to leave" feature sends an alert telling users when to head out. An arrive-by or leave-by time can be set under Directions and the transportation mode selection, so that late departures are less likely.S1

Separately, a guide for Linux users outlines three Bash scripting techniques aimed at improving scripts. The first is a help menu written as a Heredoc rather than a series of echo statements, which is tidier and avoids special characters such as "\n". Using "$(basename "$0")" lets the menu display the script's own filename, since $0 is the script path and basename extracts the filename from it.S2

The guide also recommends the built-in getopts command for parsing command line arguments, rather than relying on positional parameters, which becomes complex once options and values are involved. Getopts takes an option string, such as "abc" for the -a, -b and -c options, and stores the option currently being processed in the option variable, returning a number greater than zero when complete. Combined with a Heredoc help menu, it lets a script accept flags such as -h for help, -a with a value, and -r.S2

Timeline · newest first
2h Engadget

The hidden features every Google Maps user should know about

Discover these overlooked Google Maps features that help you plan your route and cut distractions so you can arrive at your destination on time.

2h Howtogeek

3 Bash scripting techniques every Linux user should know

Unlock the power of Bash with these simple techniques.

The hidden features of Google Maps and useful Bash scripting techniques

2 outlets 2 reports
The brief

Google Maps offers a range of tools that go well beyond typing in an address and following directions. Users can tell the app what type of car they drive, choosing between gas, diesel, hybrid and electric engines, so that routing decisions suit the vehicle. Electric and plug-in hybrid owners can specify the plug or adapter their car requires, allowing the app to surface compatible charging stations along a route, which it marks as working with that specific car. These settings are found under Settings > Your vehicles.

Route preferences can also be adjusted. Under Settings > Navigation, toggles in the Route options section let drivers avoid tolls, ferries or highways, which may suit someone seeking a scenic or cheaper route, or wanting to steer clear of freeway speeds. Setting a home address allows a single tap to start directions home, and users with the Gemini assistant enabled can say "navigate home" to set the route. None of these features require a new app or a subscription, as they are built directly into Google Maps.S1

Timing is another area where the app can help. Google Maps estimates arrival times based on the chosen route, and on iPhone the "Set a reminder to leave" feature sends an alert telling users when to head out. An arrive-by or leave-by time can be set under Directions and the transportation mode selection, so that late departures are less likely.S1

Separately, a guide for Linux users outlines three Bash scripting techniques aimed at improving scripts. The first is a help menu written as a Heredoc rather than a series of echo statements, which is tidier and avoids special characters such as "\n". Using "$(basename "$0")" lets the menu display the script's own filename, since $0 is the script path and basename extracts the filename from it.S2

The guide also recommends the built-in getopts command for parsing command line arguments, rather than relying on positional parameters, which becomes complex once options and values are involved. Getopts takes an option string, such as "abc" for the -a, -b and -c options, and stores the option currently being processed in the option variable, returning a number greater than zero when complete. Combined with a Heredoc help menu, it lets a script accept flags such as -h for help, -a with a value, and -r.S2

Timeline · newest first

Sources · 2 citations

S1 Engadget 1 report · EN
S2 HowtogeekLead 1 report · EN