1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
use crate::{ client_settings::ClientSettings, geocoding::reverse::ReverseRequest, latlng::LatLng }; // use crate impl<'a> ReverseRequest<'a> { /// Initializes the builder pattern for a Geolocation API query with the /// required, non-optional parameters. /// /// # Arguments: /// /// * `key` - Your application's Google Cloud API key. /// /// * `latlng` - The latitude and longitude values specifying the location /// for which you wish to obtain the closest, human-readable address. pub fn new( client_settings: &'a mut ClientSettings, latlng: LatLng ) -> ReverseRequest<'a> { // Instantiate struct and return it to caller: ReverseRequest { // Required parameters: client_settings, latlng, // Optional parameters: language: None, location_types: None, result_types: None, // Internal use only: validated: false, query: None, } // struct } // fn } // impl