places.js
    TypeScript icon, indicating that this package has built-in type declarations

    1.16.1¬†‚Äʬ†Public¬†‚Äʬ†Published

    header

    Version Build Status License Downloads jsDelivr Hits

    Algolia Places provides a fast, distributed and easy way to use an address search autocomplete JavaScript library on your website.

    See the website for more information.

    Read the blog post introducing Algolia Places.

    Fill the Google form to report any irrelevant results.

    Demo

    Watch more examples on the website.

    demo

    Getting started

    To use Algolia Places, all you need is an <input> and some JavaScript code that will load and use the places.js library.

    CDN <script>

    Our JavaScript library is available on the jsDelivr CDN and also on cdnjs.

    <script src="https://cdn.jsdelivr.net/npm/places.js@1.16.1"></script>

    Version is the latest version.

    Here's a small example using it:

    <input type="search" id="address-input" placeholder="Where are we going?" />
     
    <script>
      var placesAutocomplete = places({
        appId: <YOUR_PLACES_APP_ID>,
        apiKey: <YOUR_PLACES_API_KEY>,
        container: document.querySelector('#address-input')
      });
    </script> 

    Using npm

    Algolia Places is also available on npm.

    Install the module:

    npm install places.js --save

    Put an <input> in your html page:

    <input type="search" id="address-input" placeholder="Where are we going?" />

    Initialize the places.js library:

    var places = require('places.js');
    var placesAutocomplete = places({
      appId: <YOUR_PLACES_APP_ID>,
      apiKey: <YOUR_PLACES_API_KEY>,
      container: document.querySelector('#address-input')
    });

    Full documentation is available on the Algolia Places website.

    Contributing

    Wanna contribute? Awesome, please read the contributing guide.

    Keywords

    none

    Install

    npm i places.js@1.16.1

    Version

    1.16.1

    License

    MIT

    Unpacked Size

    2.15 MB

    Total Files

    33

    Last publish

    Collaborators

    • dhaya.b
    • spy-seth
    • alejandrouda
    • lukyvj
    • sepehrf
    • kosai106
    • marielaure
    • mthuret
    • haroenv
    • rayrutjes
    • speedblue
    • jerska
    • raphi
    • cbaptiste
    • ronanlevesque
    • samouss
    • therealwebby
    • francoischalifour
    • jonmontane
    • mikaa123
    • valentindotxyz
    • shipow
    • tkrugg
    • seafoox
    • sylvainh
    • clemfromspace
    • lorrissaintgenez
    • broujo
    • marieglr
    • e-krebs
    • eunjae-lee
    • kombucha
    • h1fra
    • sylvain
    • crawler-team
    • amcdaid106
    • devinalgolia
    • jvenezia
    • otomatik
    • julienbourdeau
    • sophiem03
    • mschreiber
    • sarahdayan
    • alexandremeunier
    • dcoates
    • maximehuang
    • netgusto
    • guitek
    • matthewbond
    • cyril.descossy
    • tatsuro
    • danajeremy
    • mathougui
    • xavdh
    • agdavid
    • rasemotte
    • plnech
    • shortcuts
    • praagyajoshi
    • loicsay
    • svensoldin
    • alphonseb
    • leodau
    • fabienmotte
    • sarahfranc
    • millotp
    • iam4x
    • vvo
    • bobylito
    • redox
    • pixelastic