Skip to content

New Cog: Distance Between Locations (Port From ClemBot#630) #15

Description

@chasepg0821

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"

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions