Soenneker.Google.Places
4.0.1335
Prefix Reserved
dotnet add package Soenneker.Google.Places --version 4.0.1335
NuGet\Install-Package Soenneker.Google.Places -Version 4.0.1335
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.1335" />
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.1335" />
<PackageReference Include="Soenneker.Google.Places" />
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.1335
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Google.Places, 4.0.1335"
#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.1335
#: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.1335
#tool nuget:?package=Soenneker.Google.Places&version=4.0.1335
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net10.0
- GoogleApi (>= 5.8.17)
- Soenneker.Extensions.Configuration (>= 4.0.903)
- Soenneker.Extensions.Task (>= 4.0.134)
- Soenneker.Extensions.ValueTask (>= 4.0.127)
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.1335 | 0 | 10/14/2026 |
| 4.0.1330 | 0 | 10/13/2026 |
| 4.0.1329 | 24 | 10/13/2026 |
| 4.0.1326 | 50 | 10/12/2026 |
| 4.0.1323 | 94 | 10/11/2026 |
| 4.0.1322 | 87 | 10/11/2026 |
| 4.0.1320 | 82 | 10/11/2026 |
| 4.0.1319 | 85 | 10/9/2026 |
| 4.0.1318 | 76 | 10/9/2026 |
| 4.0.1317 | 128 | 10/1/2026 |
| 4.0.1316 | 123 | 9/25/2026 |
| 4.0.1315 | 91 | 9/25/2026 |
| 4.0.1314 | 98 | 9/24/2026 |
| 4.0.1313 | 100 | 9/24/2026 |
| 4.0.1312 | 119 | 9/18/2026 |
| 4.0.1311 | 106 | 9/16/2026 |
| 4.0.1310 | 101 | 9/16/2026 |
| 4.0.1309 | 100 | 9/16/2026 |
| 4.0.1308 | 100 | 9/15/2026 |
| 4.0.1306 | 97 | 9/15/2026 |
Loading failed
Use NuGet API token for publishing