Nanoscale Parts Manufacturing

    @opencage/geosearch-bundle

    0.0.13 • Public • Published

    @opencage/geosearch-bundle

    The geosearch-bundle bundles the Algolia autocomplete and OpenCage GeoSearch plugin to search for places around the world. This bundle is for browser usage.

    Usage

    Links to the css and the script:

    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/@opencage/geosearch-bundle/dist/css/autocomplete-theme-classic.min.css"
    />
    <script src="https://cdn.jsdelivr.net/npm/@opencage/geosearch-bundle"></script>

    Container and code

    <div id="place"></div>
    
    <script type="text/javascript">
      opencage.algoliaAutocomplete({
        container: '#place',
        plugins: [
          opencage.OpenCageGeoSearchPlugin({
            key: 'YOUR-GEOSEARCH-KEY',
          }),
        ],
      });
    </script>

    Documentation

    See Documentation.

    Demo

    See Demo.

    Install

    npm i @opencage/geosearch-bundle

    DownloadsWeekly Downloads

    9

    Version

    0.0.13

    License

    MIT

    Unpacked Size

    417 kB

    Total Files

    8

    Last publish

    Collaborators

    • dev-opencage
    • tsamaya