node.js - unable to access google places api after passing next page token in nodejs -


hi i'm trying access belo url using nodejs client

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=12.8441975,80.223766&radius=500&types=restaurant&key=afghghghghghg&pagetoken=dghdghghgdhghgh

i'm using normal https client code access . when hit url without passing page token working fine.but wheni pass i'm getting error below

invalid request

dont know going wrong.any appreciated.

how time passes between 2 requests? i've found as 2 second delay before pagetoken request can necessary.

there short delay between when next_page_token issued, , when become valid. requesting next page before available return invalid_request response. retrying request same next_page_token return next page of results.

https://developers.google.com/places/documentation/search#placesearchpaging


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -