smeijer / leaflet-geosearch

A geocoding/address-lookup library supporting various api providers.
https://smeijer.github.io/leaflet-geosearch/
MIT License
1.02k stars 270 forks source link

Other output formats #313

Open JStyle21 opened 2 years ago

JStyle21 commented 2 years ago

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

smeijer commented 2 years ago

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