I am trying to add the autocomplete functionality similar to what you have here https://community.algolia.com/places/examples.html#advanced to the search form in my website. Unfortunately there are no pre-existing plugins for Leaflet https://leafletjs.com/ & OpenStreetMap maps integrations like you have for Google Places autocomplete for WordPress templates.

Is there an easy way of integrating in existing template searchforms like you have in the examples here?

Looking for some suggestions.

The page I need to change: http://demo.ohmyproperty.com/

  • The internet lists various examples for using Leaflet with Nominatim or Photon (the latter supports autocompletion). What have you tried so far?
    – scai
    Jan 3, 2020 at 8:44
  • @scai I ended up using a openstreet/leaflet.js based map provider -> github.com/location-iq/leaflet-geocoder which gives 10k request per day access to their API if you are on their free plan. Unless of course your suggestions above will provide the same absolutely for free ..
    – john zuh
    Jan 4, 2020 at 9:52
  • I didn't suggest a particular Nominatim instance since your question is not about finding a particular location provider but about integrating Nominatim in general. You should be able to configure any existing Leaflet+Nominatim/Photon solution to use LocationIQ as location provider.
    – scai
    Jan 6, 2020 at 7:26
  • @scai Just to make things clear, I finally settled on locationIQ as my location provider and used their autocomplete feature .
    – john zuh
    Jan 18, 2020 at 16:46

1 Answer 1


I used both the location provider and Autocomplete API provided by https://github.com/location-iq/leaflet-geocoder. This autocomplete feature utilises a Search API that returns place predictions in response to an HTTP request. The request specifies a textual search string and optional geographic bounds and works as expected.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.