I use AutocompleteService.getPlacePredictions method to get autocomplete items for my drop down. Very often that method returns "long" placeIds that look like this (actual placeId):
ChIJx55rzdwQ9YgRHB-NARRWZyuaBjAxNzExIERvbm5hIEx5bm4gRHJpdmUsIFNteXJuYSwgR0EsIFVuaXRlZCBTdGF0ZXM
If I then try to pass that place ID to Geocoder I get status of ZERO_RESULTS and no places:
new google.maps.Geocoder().geocode(
{ placeId: "thatLongPlaceId"},
function (results, status) { /* no place data returned */ });
But at the same time if I make the following GET call the same placeId returns the expected address:
https://maps.googleapis.com/maps/api/place/details/json?key=MyApiKey&placeid=ChIJx55rzdwQ9YgRHB-NARRWZyuaBjAxNzExIERvbm5hIEx5bm4gRHJpdmUsIFNteXJuYSwgR0EsIFVuaXRlZCBTdGF0ZXM
What am I doing wrong? What's the proper way of using that long place ID to get place data?
I think the autocomplete endpoint is not returning valid placeids as of today or yesterday. I'm running into a similar problem.