Directory

← Back

geo-fr-api

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

Author

Contributors

Rating

[ 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

Links

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

  • polymer#Polymer/polymer#1.9 - 2
  • iron-ajax#PolymerElements/iron-ajax#1 - 2
Released
2017-06-25
Maturity
IMPORTED
License
MIT License

Compatibility

Framework
Polymer 2.0+
Browser
Browser Independent
Online