ericnewton76 / gmaps-api-net

C# google maps api interface for interacting with the backend web services for Google Maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlacesResponse.NextPageToken and PlacesRequest.PageToken not there.

bergy6808 opened this issue · comments

Google has a way to access next page's results in a places response. I would add this to the PlacesResponse class.

                /// <summary>
		/// The token to get the next page, if any.
		/// </summary>
		[JsonProperty("next_page_token")]
		public string NextPageToken { get; set; }

And as well, add this to the PlacesRequest class.

                /// <summary>
		/// Send the next 20 results from a previous request.
		/// </summary>
		public string PageToken { get; set; }

NearbySearchRequest already has this value. I added it to TextSearchRequest because according to Google Places API it can also have the PageToken. However, the RadarSearch type does not have it. Thus I didn't add it to the base PlacesRequest class.

@khively thanks for the pull request! @bergy6808 , closing this issue now.