redbadger / badger-map

Where do badgers live?
Apache License 2.0
3 stars 0 forks source link

Distance between badgers #12

Closed roughprada closed 4 years ago

roughprada commented 4 years ago

It will be great to have the distance between badger by foot or bike, so if someone needs help or someone want to help each other, they can see how far they are.

Eg. I'll go to buy groceries and there is a lot of toilet paper. I can see that I am a short ride from Reece, so I can bring him some :)

charypar commented 4 years ago

Sounds super useful! How do you envision the UX of that - would you want to select two badgers and get a route between them? Or would you rather see nearby badgers with distance in each of the badger's pop-up window? Or any other idea?

roughprada commented 4 years ago

I didn't have a clear idea in mind, but clicking on a badger and highlighting a X min radius to other badgers could work very nicely! Distance between two selected badger could work well, something like "how far I am from X".

But the way I was envisioning is having geolocation when you access the app, so it knows where you are and then you can click on a badger to see the distance and path to them. What do you think?

charypar commented 4 years ago

This API looks useful: https://developers.google.com/maps/documentation/distance-matrix/intro

charypar commented 4 years ago

Finished in #20.