ember-adresse-data-gouv-fr-api

0.0.1 • Public • Published

ember-adresse-data-gouv-fr-api

npm version Build Status Ember Version

Usage

Installation

  • ember install ember-adresse-data-gouv-fr-api

Application Usage

import Service from "@ember/service";
import { inject } from "@ember/service";
 
export default Service.extend({
  adresseDataGouvFrApi: inject(),
 
  actions: {
    // location: {latitude: ..., longitude: ...}
    reverseGeocode(location) {
      // response: [GeoCodeJSON](https://github.com/geocoders/geocodejson-spec/tree/master/draft)
      get(this, 'adresseDataGouvFrApi').reverse(location).then((response) => {
        // ...
      });
    }
  }
})

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

Readme

Keywords

Package Sidebar

Install

npm i ember-adresse-data-gouv-fr-api

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • bartocc