3.1.0 • Published 1 year ago

location-search v3.1.0

Weekly downloads
56
License
-
Repository
github
Last release
1 year ago

location-search npm

Javascript lib to add location autocomplete to a input box

Update

Added place_id field to Events.Geocode

Installation

npm i location-search

Usage

JavaScript

@import 'location-search';

HTML

<link rel="stylesheet" href="node_modules/@firstandthird/complete/lib/complete.css"/>
<div data-module="LocationSearch" class="module-complete">
  <input data-name="input" type="text" id="location-search" data-action="search" data-action-type="input" />
  <div data-name="resultsContainer"></div>
</div>

Attribution

Google requires anyone using the places api show attribution.

By default location-search uses ./img/light.png. This is the hidpi version so your css will need resize the image to 144px x 18px. There's also a img/dark.png available.

To change this, set the googleLogo option. This should be a path the browser can resolve. You can also set it to an empty string if you're going to display the logo elsewhere.

3.1.0

1 year ago

3.0.1

1 year ago

3.0.0

2 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.5.0

5 years ago

1.4.4

5 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago