Giter VIP home page Giter VIP logo

statamic-algolia-places's Introduction

Latest Version Statamic 3.0+

Algolia Places

Algolia Places fieldtype for Statamic 3.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

Require it using Composer.

composer require spatie/statamic-algolia-places

Templating

The location field will contain the following data:

location:
  name: 'Kruikstraat 22'
  administrative: Vlaanderen
  county: Antwerpen
  city: Antwerpen
  country: België
  countryCode: be
  type: address
  latlng:
    lat: 51.2088
    lng: 4.42386
  postcode: '2018'
  postcodes:
    - '2018'
  query: 'Kruikstraat 22'
  value: 'Kruikstraat 22, Antwerpen, Vlaanderen, België'

Configuration

The fieldtype has all the Algolia Places options

Config

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

statamic-algolia-places's People

Contributors

adrianmrn avatar riasvdv avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

statamic-algolia-places's Issues

Cacheable PLACES_API_KEY en PLACES_APP_ID

The PLACES_APP_ID and PLACES_API_KEY comes directly from the .env, when I run the command php artisan optimize then the fieldtype does not work anymore because the KEY and ID are not cached. Is it possible to make a config file that can be cached?

FR: auto-localization

Hey, I just installed your addon and it seems to work really well! Thanks a lot for your work!

I was wondering if it would be possible to update the fetched information based on various site locales.
I for example am using a website with two locales and while Algolia Places can provide localized location data the addon lets me only choose a default for all sites.

I don't know if this is possible, however such a feature would be greatly appreciated.

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.