Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action proposal: get location of the closest point of interest to a given location #86

Open
codetheweb opened this issue Dec 4, 2022 · 2 comments

Comments

@codetheweb
Copy link

Description

Use case: I live in San Fransisco and frequently use a bike sharing program called Bay Wheels. However, the bike racks are sometimes hard to spot, and when biking to a new destination it's hard to know if you should stop at the first rack you see (even if it's farther away) or continue biking in the hope there's a rack closer.

Apple Maps lists Bay Wheels bike racks, so it's possible to get directions to a rack. I'd like to make a shortcut that given a destination finds the closest bike rack to it and starts directions to the rack.

Although there's a way to search for something around a location within a given radius, there doesn't seem to be an easy way to just get the closest [thing] to a location.

Some workarounds are discussed here, but they're all rather clunky.

If this is something you're interested in supporting, I'm happy to work towards a PR for it.

@sindresorhus
Copy link
Owner

By "thing", do you mean "point of interest"?

Instead of returning the address, how about it returns a new location? You can then use a different action to get the formatted address. I think that would make it more flexible.

@codetheweb
Copy link
Author

By "thing", do you mean "point of interest"?

I think so, wasn't sure what the correct terminology was.

Instead of returning the address, how about it returns a new location? You can then use a different action to get the formatted address. I think that would make it more flexible.

Yep that sounds good!

@codetheweb codetheweb changed the title Action proposal: get address of the closest [thing] to a given location Action proposal: get location of the closest point of interest to a given location Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants