/// <summary>
 /// Performs a geocode lookup based on the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the request to the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 /// <see>
 ///     <cref>https://developers.google.com/maps/documentation/geocoding/overview#geocoding</cref>
 /// </see>
 public IHttpResponse Geocode(GeocodingGeocodeOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     return(GetResponse(options));
 }
Exemple #2
0
 /// <summary>
 /// Performs a geocode lookup based on the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the request to the API.</param>
 /// <returns>An instance of <see cref="GeocodingResultListResponse"/> representing the response.</returns>
 /// <see>
 ///     <cref>https://developers.google.com/maps/documentation/geocoding/overview#geocoding</cref>
 /// </see>
 public GeocodingResultListResponse Geocode(GeocodingGeocodeOptions options)
 {
     return(new GeocodingResultListResponse(Client.Geocode(options)));
 }