• import { getLngLat } from '@src/hylo-components/utils/usefull/usefull';

    Gathers the longitude and latitude of a given address string.

    The viewbox is the preferred area to find search results. Any two corner points of the box are accepted as long as they span a real box. x is longitude, y is latitude.

    Uses https://nominatim.org/release-docs/develop/

    Parameters

    • address: string

      the address to be searched for, separate the parts of the address by comma when possible

    • Optional viewbox: string

      ',,,' (optional)

    Returns Promise<[number, number]>

    [longitude, latitude]

Generated using TypeDoc