A class that provides methods for geocoding.

Hierarchy

  • GeoCoder

Constructors

Properties

API_KEY: string = ...
USER_AGENT: string = ...

Methods

  • Private

    Geocodes the given address using the geocode.xyz service.

    Parameters

    • address: string

      The physical address or location to geocode.

    Returns Promise<GeoCodingResult>

    the coordinates of the given address

  • Private

    Geocodes the given address using the Nominatim service.

    Parameters

    • address: string

      The physical address or location to geocode.

    Returns Promise<GeoCodingResult>

    the coordinates of the given address

  • Geocodes the given addresses using the given service.

    Parameters

    • service: GeoCodingService

      The geocoding service to use.

    • Rest ...addresses: string[]

      The addresses to geocode.

    Returns Promise<GeoCodingResult[]>

Generated using TypeDoc