I'm trying to read additional items after reading the first 20 items of the result set using explore method in the H.service.PlacesServices (Maps API v3.1) namespace
I am only able to read the first the first 20 items OK, but receive an unauthorised result when I call the follow(uri) method as suggested passing the URI.
Code written in Angular / TypeScript. I also tried including an apikey as well as app_id & code. However, I would assume that since I am using the same initialised Object, the appkey is passed with the follow(uri) method automatically.
I also tried using httpClient but I get a similiar error.
I would assume that calling the next page doesn't require any authentication.
this.platform = new H.service.Platform({apikey: "xxx"});
this.places = this.platform.getPlacesService();
var query = {"at": lat +"," + lng +";r=1000,"cat" : categories +",pretty"};
await this.places.explore(query, async (result) => {
values = result;
***do something***
await this.places.follow(result.results.next, (result2) => {
***do something***
}, (e) => {console.log(e)});
}, (e) => {console.log(e)});
What am I doing wrong?? Any suggestions, please?
I'd love reading the next items but I receive a 401 not authorised error
{"error":"Unauthorized","error_description":"Bearer token invalid. Bearer missing or bearer value missing."}