Class: GoGeocodingHERE

GoGeocodingHERE

Interaction that allows to make geocoding with the map: for example, get coordinates from direction or get direction from coordinates


    Example: 
        const getdirectionfromcoordinates = async (map: GOMap) => {
        let lat = 39;
        let lng = -0.5;
        await map?.interactions.getDirectionFromCoordinates(lat, lng,'string with the api-key').then((response: string) => {
            if (response) {
                let direction = response;
                alert(direction);
            }
        });
    }

    const getcoordinatesfromdirection = async (map: GOMap) => {
        let direction = 'Legion española 4 valencia';
        await map?.interactions.getCoordinatesFromDirection(direction,'string with the api-key').then((response: any) => {
            if (response) {
                let coordenadas = response;
                alert("lat: " + coordenadas.lat +" lng: " + coordenadas.lng);
            }
        });
    }
   

new GoGeocodingHERE()

Interactions/ExternalsConnections/interact/Geocoding/GoGeocodingHERE.ts, line 48

Extends

Methods

asyncautoSuggestAddress(textToSearch){string}

Interactions/ExternalsConnections/interact/Geocoding/GoGeocodingHERE.ts, line 169

This function return the direction from 2 coordinates

Name Type Description
textToSearch string

The string with the text to search.

Returns:
Type Description
string
  • The suggest of the address.

asyncgetCoordinatesFromDirection(direction){Promise.<any>}

Interactions/ExternalsConnections/interact/Geocoding/GoGeocodingHERE.ts, line 56

This function return the coordinates from direction if an error exist, return {lat:0, lng:0}

Name Type Description
direction string

The string with the direction to get the coordinates.

Returns:
Type Description
Promise.<any>

asyncgetCoordinatesFromDirectionProperties(direction){CancelablePromise.<any>}

Interactions/ExternalsConnections/interact/Geocoding/GoGeocodingHERE.ts, line 212

This function return the coordinates from direction if an error exist, return {lat:0, lng:0}

Name Type Description
direction string

The string with the direction to get the coordinates.

Returns:
Type Description
CancelablePromise.<any>

asyncgetDirectionFromCoordinates(lat, long){string}

Interactions/ExternalsConnections/interact/Geocoding/GoGeocodingHERE.ts, line 93

This function return the direction from 2 coordinates

Name Type Description
lat number

Latitude of the point.

long number

Longitude of the point.

Returns:
Type Description
string
  • The string with the direction.

asyncgetDirectionFromCoordinatesProperties(lat, long){string}

Interactions/ExternalsConnections/interact/Geocoding/GoGeocodingHERE.ts, line 276

This function return the direction from 2 coordinates

Name Type Description
lat number

Latitude of the point.

long number

Longitude of the point.

Returns:
Type Description
string
  • The string with the direction.

asyncsuggestAddress(textToSearch){string}

Interactions/ExternalsConnections/interact/Geocoding/GoGeocodingHERE.ts, line 128

This function return the direction from 2 coordinates

Name Type Description
textToSearch string

The string with the text to search.

Returns:
Type Description
string
  • The suggest of the address.

inherited typeLayerHidraulic(feature){string}

Interactions/utils/GoInteractionTool.ts, line 20

This function allow to create a style for the hidraulic layer.

Name Type Description
feature module:types~FeatureLike

The feature to style

Returns:
Type Description
string Return the new style of the feature.