Console app that takes an address (from command-line args or stdin) and prints the geocoded latitude/longitude plus Google's formatted address.
GOOGLE_API_KEY=your_api_key dotnet run --project samples/Console.Geocoding -- "1600 Amphitheatre Parkway, Mountain View, CA"Or omit the address and you'll be prompted:
GOOGLE_API_KEY=your_api_key dotnet run --project samples/Console.GeocodingIGoogleMapsClientinstance client (.Geocode) — the recommended entry pointGeocodingRequestGeocodingResponse- Async-first usage via
QueryAsync