geo-fr-api | Vaadin

A set of elements wrapping the french governmental geo api (Polymer 1.9 - 2.x)

[ This description is mirrored from README.md at github.com/Zecat/geo-fr-api on 2019-05-22 ]

Published on webcomponents.org

Geo Fr Api

A collection of elements wrapping the french governmental geo api.

<dom-bind>
  <template>

    <geo-fr-towns
      auto
      value="{{towns}}"
      town-name="Paris"
    ></geo-fr-towns>

    <h2>Matching towns:</h2>
    <template is="dom-repeat" items="[[towns]]">
      <p>
        Name: [[item.townName]],
        postal code: [[item.codePostaux.0]],
        departement code: [[item.codeDepartement]],
        population: [[item.population]]
      </p>
    </template>

  </template>
</dom-bind>

Install

bower install -S Zecat/geo-fr-api

Import

<!-- All components -->
<link rel="import" href="/bower_components/geo-fr-api/geo-fr-api.html">
<!-- towns components -->
<link rel="import" href="/bower_components/geo-fr-api/geo-fr-towns/geo-fr-towns.html">
<!-- addresses components -->
<link rel="import" href="/bower_components/geo-fr-api/geo-fr-addresses/geo-fr-addresses.html">

What is inside

Elements

Install

Link to this version
ImportedReleased 25 June 2017MIT License
Framework Support
Polymer 2.0+
Browser Compatibility
Install with
bower install --save Zecat/geo-fr-api"#0.2.0"
Run the above Bower command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 0.2.0

Dependencies

  • polymer#Polymer/polymer#1.9 - 2
  • iron-ajax#PolymerElements/iron-ajax#1 - 2