leaflet-geosearch icon indicating copy to clipboard operation
leaflet-geosearch copied to clipboard

Other output formats

Open JStyle21 opened this issue 3 years ago • 1 comments
trafficstars

Hi,

I'm using the nominatim openstreetmap api and per their doccumention They support multiple output formats, i didn't find a way to make it work with geosearch, i think the provider is hardcoded for json

  endpoint({ query, type }: EndpointArgument): string {
    const params = typeof query === 'string' ? { q: query } : query;
    params.format = 'json';

Please confirm

JStyle21 avatar Jan 17 '22 16:01 JStyle21

Yes, that's correct. The format is hard coded at the moment.

smeijer avatar Jan 17 '22 16:01 smeijer