Walking Distance
lwaters5 opened this issue · 2 comments
lwaters5 commented
Can this store-locator calculate the distance using walking distance? If so, how would I change the code to do this? Thank you.
jimmyn commented
It calculates distance using computeDistanceBetween google maps api method. It is a direct distance betwean 2 points, not even a driving distance. You can make a fork and customize this method if you like.
lwaters5 commented
I am unsure how to make a fork. Would a fork be compatible with walking
distance. Also, can I have the results only show 2 results? The closest 2
results. Thank you for your help. I have been searching for a solution for
so long so your help is very much appreciated.
On Tue, Oct 23, 2018 at 10:38 AM Dmitriy Nevzorov ***@***.***> wrote:
It calculates distance using computeDistanceBetween
<https://developers.google.com/maps/documentation/javascript/reference/geometry#spherical.computeDistanceBetween>
google maps api method. It is a direct distance betwean 2 points, not even
a driving distance. You can make a fork and customize this method
<https://github.com/microapps/store-locator/blob/master/src/components/StoreLocator.js#L56>
if you like.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF3nfElhbNOMdTuAE-vbCstxBr6hTzziks5unynggaJpZM4X1tBy>
.
--
Lisa Waters
Web & Online Services Manager
617.349.3056 | lwaters@cpsd.us | www.cpsd.us
[image: fb.jpg] <https://www.facebook.com/cps.schools> [image: tw.jpg]
<https://twitter.com/cambridge_cpsd> [image: insta.jpg]
<https://www.instagram.com/cambridgepublicschools/> [image: in.jpg]
<https://www.linkedin.com/company/cambridge-public-schools/>