ResearchCave Technology

ResearchCave.Location.Client (1.0.0)

Published 2026-10-10 22:23:46 +03:00 by admin

Installation

dotnet nuget add source --name ResearchCave --username your_username --password your_token https://git.researchcave.com/api/packages/ResearchCave/nuget/index.json
dotnet add package --source ResearchCave --version 1.0.0 ResearchCave.Location.Client

About this package

Typed service-discovery client for the ResearchCave Location authority.

ResearchCave.Location.Client

Register the client with services.AddResearchCaveLocationClient(configuration).

Configure DownstreamServices:Location:BaseUrl, normally https+http://location, and OIDC client credentials permitted to request location.lookup, location.write, and, where needed, location.map.

Use ILocationClient.GetCurrentAsync(subjectId) for one user or the collection overload for up to 100 users. Calls are made only when the consuming service invokes the client; the library does not perform background or login-time lookups.

Maps should use the MapViewportRequest overload. It sends the trusted viewer, accepted-friend subjects, active subjects, viewport bounds, and zoom to Location. Location applies privacy and clustering before returning data; consumers must not offset or regroup the response.

Distance-sorted member discovery should use GetNearbyUsersAsync. Location enforces the hard 1,000 km ceiling, location age, observation visibility, and each member's privacy mode. The result intentionally contains distances but no coordinates.

Dependencies

ID Version Target Framework
Microsoft.Extensions.Caching.Memory 10.0.12 net10.0
Microsoft.Extensions.Http 10.0.12 net10.0
Microsoft.Extensions.Options.ConfigurationExtensions 10.0.12 net10.0
ResearchCave.Identity 1.1.67 net10.0
Details
NuGet
2026-10-10 22:23:46 +03:00
3
ResearchCave.Location.Client
60 KiB
Assets (2)
Versions (1) View all
1.0.0 2026-10-10