communityconnect icon indicating copy to clipboard operation
communityconnect copied to clipboard

Distance from current location

Open sayansaha1143 opened this issue 8 years ago • 2 comments

I think it would be helpful for users if along with the address of the location, we could add a distance in miles from the current user's location for each of our displayed result.

sayansaha1143 avatar Sep 07 '18 13:09 sayansaha1143

Thank you! @microcat49 has an open PR that computes the distance & sorts by it, so we can use that! https://github.com/codeforboston/communityconnect/pull/31

galiat avatar Sep 13 '18 15:09 galiat

In my last pull request I created a function called getDistance() . It will return the distance between two geographical points. I might move the function to its own file so it can reference through out the application.

I can pass the current location through ResultList to each individual OrganizationCard and have the distance calculated in each card?

microcat49 avatar Sep 13 '18 22:09 microcat49