lovinghouston / lwcgoogleplacesbutton

Adds a Lightning Web Component to create Google Place Listings (currently hardcoded to type "church") as a Salesforce object (currently hardcoded to a custom object named Church_School_Partnership__c).
3 stars 1 forks source link

Create School Accounts based on Distance #29

Closed Julian88Tex closed 4 years ago

Julian88Tex commented 4 years ago

As a developer/tester, when I run the GooglePlaces.searchPlace method, I would like Accounts to be created based on closest to furthest.

ACs

Given a School Account exists And Church Account has Zip & Country When Google Places class is run correctly using School Account's ID Then 5 Church Accounts that are created are from closest to furthest based on their Billing Address

Note: For MVP, no need worry about if two churches are the same distance from the school.

sungysang commented 4 years ago

https://developers.google.com/places/web-service/search

"rankby — Specifies the order in which results are listed."

sungysang commented 4 years ago

"Note that radius must not be included if rankby=distance"

Julian88Tex commented 4 years ago

This has been completed. Great job @sungysang !