Giter Club home page Giter Club logo

stimulus-places-autocomplete's Introduction

Stimulus components

๐Ÿ‘‰ Introducing Stimulus components.

๐Ÿ“š Documentation

See Stimulus Components Website.

๐Ÿ‘ท Contributing

Do not hesitate to contribute to the controllers by adapting or adding features ! Bug reports or pull requests are welcome.

Don't forget to drop a ๐ŸŒŸ on GitHub to support the project.

๐Ÿ“ License

This project is released under the MIT license.

stimulus-places-autocomplete's People

Contributors

guillaumebriday avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stimulus-places-autocomplete's Issues

Add more Address attributes

Hi, searching for replacement for now deprecated geocomplete, I was happy to find this, as we are all into Stimulus!

I tried playing with this a bit, and there's one small issue - this controller doesn't support all fields we use.

Would it be possible to add these standard fields, returned from Google API, into targets and Address:

  • formatted_address
  • street_address
  • locality
  • sublocality
  • neighborhood
  • political

?

I can prepare PR, if this is acceptable.

Thank you!

(If it's not added, we will have to create our own controller, as we don'ลง use ts in our project, so just extending this would be painful, if not impossible)

UK / GB not returning city

All working fine for other countries but the data from the UK is not returning the city, sometimes the city does appear in the county, but other times the county will appear there!

Any help appreciated. @guillaumebriday

Add Latitude and longitude address components

Hello. I am wondering if could be possible to add new latitude and longitude targets to the component just like the other address components.

Personally I would find it really useful, not sure if this is in your plans.

<input type="text" data-common--autocomplete-target="city" />
<input type="text" data-common--autocomplete-target="streetNumber" />
<input type="text" data-common--autocomplete-target="route" />
<input type="text" data-common--autocomplete-target="county" />
<input type="text" data-common--autocomplete-target="state" />
<input type="text" data-common--autocomplete-target="postalCode" />
<input type="text" data-common--autocomplete-target="country" />

<input type="text" data-common--autocomplete-target="latitude" />
<input type="text" data-common--autocomplete-target="longitude" />

Thank you for this awesome work!

Could not resolve "stimulus"

The latest Rails stimulus packages are at "@hotwired/stimulus" instead of "stimulus". This is why this code creates an error when trying to include stimulus-places-autocomplete.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.