简体   繁体   中英

Building a Query URL for Places API in Google Maps Javascript API

I am trying to use Places API by using an URL but I couldn't find any ways to build a query string for Places API on Google's documentation. (which can be found here )

Using the API key is not a problem, I just need to get the results which I get from nearbySearch by using a URL and fetch method in Javascript.

service = new google.maps.places.PlacesService(map);
service.nearbySearch(request, callback);

Is there any way that I can build a query string to retrieve json data for Places API?
Thanks in advance.

Interestingly the base url is not showed on the URL page, it's actually in this page .
Any request can be done with the urls in that page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM