ClemBot icon indicating copy to clipboard operation
ClemBot copied to clipboard

New Cog: Distance Between Locations

Open Exper1mental opened this issue 3 years ago • 0 comments

The general idea is to have a command where you input two locations, and the bot will report back the distance between them. The geocode.xyz API I use for the weather command could likely be reused for this purpose, at least in terms of converting user input into a more computer-readable format (if needed).

I'm mainly thinking of straight-line distance but it could also be cool to add a way to see what the distance would be by road, bike, train, etc. This could then be expanded further into providing estimated travel time and even a link to navigation on Apple Maps, Google Maps, DuckDuckGo, etc.

Examples: !distance "New York, NY, USA" to "Clemson, SC, USA" !dist road "Greenville, SC, USA" to "Central, SC, USA" !traveltime road "Chicago, IL, USA" to "Toronto, ON, Canada"

Exper1mental avatar Mar 19 '22 14:03 Exper1mental