GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Model

Locator Class

Represents a geocode service resource exposed by the ArcGIS Server REST API. It is used to generate candidates for an address. It is also used to generate batch results for a set of addresses.
Work in progress, currently only “LocationToAddress” is implemented.
ArcGIS JS API

public class Locator : dymaptic.GeoBlazor.Core.Model.LogicComponent

Inheritance System.Object 🡒 dymaptic.GeoBlazor.Core.Model.LogicComponent 🡒 Locator

Constructors

Locator(IJSRuntime, AuthenticationManager, LicenseValidator) Constructor

Public constructor for Dependency Injection

public Locator(Microsoft.JSInterop.IJSRuntime jsRuntime, dymaptic.GeoBlazor.Core.Model.AuthenticationManager authenticationManager, dymaptic.GeoBlazor.Pro.LicenseValidator licenseValidator);

Parameters

jsRuntime Microsoft.JSInterop.IJSRuntime

authenticationManager dymaptic.GeoBlazor.Core.Model.AuthenticationManager

licenseValidator dymaptic.GeoBlazor.Pro.LicenseValidator

Methods

Locator.LocationToAddress(Point, string, Nullable, SpatialReference, RequestOptions) Method

Locates an address based on a given point.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Objects.AddressCandidate> LocationToAddress(dymaptic.GeoBlazor.Core.Components.Geometries.Point location, string serviceUrl, System.Nullable<dymaptic.GeoBlazor.Pro.Model.LocationType> locationType=null, dymaptic.GeoBlazor.Core.Components.Geometries.SpatialReference? outSpatialReference=null, dymaptic.GeoBlazor.Pro.Model.RequestOptions? requestOptions=null);

Parameters

location dymaptic.GeoBlazor.Core.Components.Geometries.Point

The point at which to search for the closest address. The location should be in the same spatial reference as that of the geocode service.

serviceUrl System.String

URL to the ArcGIS Server REST resource that represents a locator service.

locationType System.Nullable<LocationType>

Define the type of location, either “street” or “rooftop”, of the point returned from the World Geocoding Service.

outSpatialReference dymaptic.GeoBlazor.Core.Components.Geometries.SpatialReference

The spatial reference of the output geometries. If not specified, the output geometries are in the spatial reference of the input geometries when performing a reverse geocode and in the default spatial reference returned by the service if finding locations by address.

requestOptions RequestOptions

Additional options to be used for the data request

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Objects.AddressCandidate>