Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GeoClient

Implements

Index

Constructors

constructor

  • new GeoClient(baseUrl: string, encodingOptions?: EncodingOptions): GeoClient
  • new GeoClient(rpcClient: default): GeoClient
  • Parameters

    • baseUrl: string

      Base URL to the location RPC service

    • Optional encodingOptions: EncodingOptions

      Serialization options for communication with the RPC Server

    Returns GeoClient

  • Parameters

    • rpcClient: default

      Multi-RPC Client connection to the RPC service

    Returns GeoClient

Properties

Protected connection

connection: string | default

Protected rpcClient

rpcClient: default

Protected rpcTransport

rpcTransport: default

Methods

autocompleteSearch

ensureLocation

  • Ensures that EtomonLocation objects are returned.

    Parameters

    • locDoc: EtomonLocation

      Existing location object

    • Optional resolveResults: boolean

      Whether to update fields on the location object with fields from the location api

    Returns Promise<EtomonLocation[]>

  • Ensures that EtomonLocation objects are returned given a Google Autocomplete entry

    Parameters

    • searchResult: AutocompleteResult

      Google Autocomplete object

    • Optional resolveResults: boolean

      Whether to update fields on the location object with fields from the location api

    Returns Promise<EtomonLocation[]>

  • Ensures that EtomonLocation objects are returned given a Google Place ID

    Parameters

    • placeId: string
    • resolveResults: boolean

      Whether to update fields on the location object with fields from the location api

    Returns Promise<EtomonLocation[]>

  • Ensures that EtomonLocation objects are returned given an array of AutocompleteResult entries, place ids, and/or EtomonLocations.

    Parameters

    • inputs: (string | EtomonLocation | AutocompleteResult)[]

      Array of AutocompleteResult entries, place ids, and/or EtomonLocations

    • Optional resolveResults: boolean

      Whether to update fields on the location object with fields from the location api

    Returns Promise<EtomonLocation[]>

Protected makeRpcCall

  • makeRpcCall<T>(method: string, ...params: any[]): Promise<T>

resolveLocations

resolveOneLocation

Static readLocationFromCookie

Generated using TypeDoc