Skip to content

Search: Include zoom value for more relevant results #53

@JakobMiksch

Description

@JakobMiksch

ThePhoton GeoCoder can use a "location bias" to make the results more relevant. See: http://localhost:2322/api?q=berlin&lon=10&lat=52&zoom=12 Currently we only use lat/lon to higher rank places close it.

Photon would allow to provide a "zoom" value, but we have not implemented that yet. Unfortunately, the geocoder plugin does not natively provide a zoom value, once the use starts searching. See here:

type MaplibreGeocoderApiConfig = {
    bbox?: number[];
    countries?: string;
    language?: string;
    limit?: number;
    proximity?: number[];
    query?: string | number[];
    reverseMode?: "distance" | "score";
    types?: string;
}

related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions