Interface BoudaryOptions

Set of options when you are looking for places in a particular region.

new JawgPlaces({
boundaries: {
countries: 'fra',
point: { lat: 0, lon: 0 },
gids: ['whosonfirst:locality:101751119']
}
})
interface BoudaryOptions {
    circle: CircleOptions | (() => CircleOptions);
    countries:
        | string
        | string[]
        | (() => string[])
        | (() => string);
    gids:
        | string
        | string[]
        | (() => string[])
        | (() => string);
    rectangle: RectangleOptions | (() => RectangleOptions);
}

Properties

circle: CircleOptions | (() => CircleOptions)

Search within a circular region. Circle can be static or dynamic with the function.

countries:
    | string
    | string[]
    | (() => string[])
    | (() => string)

Add a restriction by alpha-2 or alpha-3 ISO-3166 country code. Countries can be static or dynamic with the function.

gids:
    | string
    | string[]
    | (() => string[])
    | (() => string)

Add a restriction by GIDs. GIDs can be static or dynamic with the function.

rectangle: RectangleOptions | (() => RectangleOptions)

Search within a rectangular region. Rectangle can be static or dynamic with the function.