ClemBot
ClemBot copied to clipboard
New Cog: Distance Between Locations
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"