Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeoCoder

Provides basic geocode and reverse geocode functionality that allows you to:

  • Obtain geocoordinates for addresses
  • Obtain addresses or administrative areas for locations
  • Obtain geocoordinates for known landmarks

Uses the HERE Geocoder API.

see

https://developer.here.com/documentation/geocoder/dev_guide/topics/what-is.html

Hierarchy

  • GeoCoder

Index

Constructors

constructor

Methods

geocode

  • geocode(params: {}, onSuccess: (data: any) => void, onError?: (error: any) => void): void
  • Parameters

    • params: {}

      additional parameters for geocode request

      • [name: string]: string | string[] | number | number[]
    • onSuccess: (data: any) => void

      success callback

        • (data: any): void
        • Parameters

          • data: any

          Returns void

    • Optional onError: (error: any) => void

      error callback

        • (error: any): void
        • Parameters

          • error: any

          Returns void

    Returns void

getIsoCountryCode

  • getIsoCountryCode(position: number[] | GeoPoint, onSuccess: (isocc: string, data: any) => void, onError: (error: any) => void): void
  • HTTPRequest reverse geocode request to receive ISO country code for a geographical position.

    Parameters

    • position: number[] | GeoPoint

      it is either an array [longitude, latitude] or an object literal {longitude: number, latitude: number}

    • onSuccess: (isocc: string, data: any) => void

      success callback which contains the iso country code.

        • (isocc: string, data: any): void
        • Parameters

          • isocc: string
          • data: any

          Returns void

    • onError: (error: any) => void

      error callback

        • (error: any): void
        • Parameters

          • error: any

          Returns void

    Returns void

reverseGeocode

  • reverseGeocode(params: {}, onSuccess: (data: any) => void, onError: (error: any) => void): void

Generated using TypeDoc