Soenneker.Google.Places 4.0.1285

Prefix Reserved
dotnet add package Soenneker.Google.Places --version 4.0.1285
                    
NuGet\Install-Package Soenneker.Google.Places -Version 4.0.1285
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Google.Places" Version="4.0.1285" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Google.Places" Version="4.0.1285" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Google.Places" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Google.Places --version 4.0.1285
                    
#r "nuget: Soenneker.Google.Places, 4.0.1285"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Google.Places@4.0.1285
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Google.Places&version=4.0.1285
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Google.Places&version=4.0.1285
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Google.Places

A DI-ready wrapper for Google Places Find Place and Place Details requests.

Install

dotnet add package Soenneker.Google.Places

Configuration

{
  "Google": {
    "Places": {
      "ApiKey": "<Google Places API key>"
    }
  }
}

Register

using Soenneker.Google.Places.Registrars;
using Microsoft.Extensions.DependencyInjection;

services.AddGooglePlacesUtilAsScoped();

Singleton registration is also available through AddGooglePlacesUtilAsSingleton(); the implementation is stateless after reading its API key.

Find a place and load details

PlaceResult? candidate = await places.GetPlace(
    "1600 Amphitheatre Parkway, Mountain View, CA",
    cancellationToken: cancellationToken);

if (candidate?.PlaceId is { } placeId)
{
    PlaceResult? details = await places.GetDetails(
        placeId,
        cancellationToken: cancellationToken);
}

Name, geometry, and place ID are always requested. Supply additionalFieldTypes when the response must include other billable fields.

API at a glance

API What it does Result / important behavior
GetPlaces(address, additionalFieldTypes) Runs a text Find Place request. Returns candidates in response order, or an empty list for no match.
GetPlace(address, additionalFieldTypes) Returns the first Find Place candidate. null for no match; it is not an exact-match guarantee.
GetPlaceId(address) Returns the first candidate's place ID. null for no match.
GetDetails(placeId, additionalFieldTypes) Loads details for an existing place ID. null when Google reports that the place was not found.

Practical notes

  • Quota, authentication, permission, invalid-request, and other non-success statuses throw InvalidOperationException; they are not reported as empty results.
  • Transport failures propagate from the underlying Google API client, and cancellation is forwarded to each request.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.1285 0 8/31/2026
4.0.1284 0 8/31/2026
4.0.1283 33 8/31/2026
4.0.1282 37 8/30/2026
4.0.1281 44 8/30/2026
4.0.1279 32 8/30/2026
4.0.1278 34 8/30/2026
4.0.1277 45 8/30/2026
4.0.1276 46 8/30/2026
4.0.1275 35 8/29/2026
4.0.1274 42 8/29/2026
4.0.1273 36 8/29/2026
4.0.1272 42 8/29/2026
4.0.1270 45 8/26/2026
4.0.1269 46 8/26/2026
4.0.1268 44 8/25/2026
4.0.1267 85 8/22/2026
4.0.1266 86 8/18/2026
4.0.1265 102 8/12/2026
4.0.1264 92 8/8/2026
Loading failed

Updated NuGet packages