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

to address google javascript api internal issue number 33733036: #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
to address google javascript api internal issue number 33733036:
" some Place IDs are being replaced with newer ones, but Autocomplete is
not serving the new Place IDs yet. Our engineering team is looking into
the issue with a high priority. "

the resolution is to submit the getDetails message using 'reference'
instead of 'placeId' for the lookup.
joshzume committed Dec 22, 2016
commit 955b7285f14a5256f1805162dbe39923eb7ae639
2 changes: 1 addition & 1 deletion src/autocomplete.js
Original file line number Diff line number Diff line change
@@ -164,7 +164,7 @@ angular.module('google.places', [])
});
});
} else {
placesService.getDetails({ placeId: prediction.place_id }, function (place, status) {
placesService.getDetails({ reference: prediction.reference }, function (place, status) {
if (status == google.maps.places.PlacesServiceStatus.OK) {
$scope.$apply(function () {
$scope.model = place;