I am using google maps API to get all the place information like phone number , opening hours .. when I test with the placeid in the developers site I get all the details but when I send send my placeid I get just the address_components details.
Asked
Active
Viewed 1,291 times
-1
-
1The two links are the same actually – mrunde Oct 27 '16 at 12:16
-
sorry the other link is: https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=AIzaSyBz2O-udgMv8PnaY-2tW118Uz1182ApEiw – broadcastip Oct 27 '16 at 19:43
2 Answers
2
The place ID ChIJ2xEZitrOUUYR0a9wjkKF9_g from second request returns result of type route. Places API can return addresses as well, not only businesses.
You can easily check it with Geocoding API request:
or open it in Geocoder tool:
The route is not a business, so it doesn't have phone, open hours, etc.

xomena
- 31,125
- 6
- 88
- 117
0
I found the problem it was with the place_id and not the request , as xomena saying the the request returns result of type route, but I tried what 2 requests you wrote and it returns the same data I got with my request because of the placeId.
thank you all anyway :)

broadcastip
- 13
- 5