chk1 / geo-uri-select

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geo Uri Select

A Windows application that allows you choose where to open geo: and bingmaps: URIs.

Some applications hardcode their location functionality to bingmaps: URIs, which would always open the Windows 10 Bing Maps application. I don't like the Bing Maps application, so I made this small tool to navigate around the issue by adding a quick way to instead open the default browser.

Map providers currently include:

  • OpenStreetMap
  • Google Maps
  • Bing Maps
  • Bing Maps Windows 10 App
  • Yandex

Screenshot showing the user interface

Installation

Copy geo-url-select.exe to C:\Program Files\GeoUrlSelect\geo-url-select.exe.

Then run register_url_handler.reg to create the necessary registry keys, so that you can select the program from the Windows 10 Default Programs settings dialogue.

If you want to place the .exe in another location, update the path in the .reg file accordingly (or directly in the registry).

Building

You can build the project by running the following command:

cargo build --release

TODO

Caveats:

  • I'm a Rust novice, the code lacks any meaningful error handling
  • The application works on Windows 10+ only (if you ditch the Bing Maps App button, it could probably work in earlier versions, but this is untested)
  • Inconsistent use of uri and url
  • No (persistent or any) settings

Possible further work:

  • "Copy to clipboard" function
  • Exit application after click, with setting
  • A proper automated setup
  • A nicer icon

Resources

Registering a Windows URL handler:

Creating Windows GUIs with Rust:

About


Languages

Language:Rust 100.0%