code_postaux 1.0.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 34

French postal codes API for Dart

Search city name and INSEE code by zip code.

Based on the official postal codes database from La Poste and fixed by Christian Quest.

Usage in the browser

import 'package:code_postaux/code_postaux_html.dart';

main() async {
  List<City> cities = await find("31000"); // a list of cities corresponding to zip code 31000
}

Usage in the vm

import 'package:code_postaux/code_postaux_io.dart';

main() async {
  List<City> cities = await find("31000"); // a list of cities corresponding to zip code 31000
}

Changelog

0.0.4

  • readme Translate French to English
  • readme Improve example
  • lib add basic documentation

0.0.3

  • readme Translate French to English

0.0.2

  • readme Translate French to English

0.0.1

  • Initial version

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  code_postaux: "^1.0.2"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:code_postaux/code_postaux_html.dart';

import 'package:code_postaux/code_postaux_io.dart';
        
Version Uploaded Documentation Archive
1.0.2 Jun 24, 2016 Go to the documentation of code_postaux 1.0.2 Download code_postaux 1.0.2 archive
0.0.4 Jun 22, 2016 Go to the documentation of code_postaux 0.0.4 Download code_postaux 0.0.4 archive
0.0.3 Jun 22, 2016 Go to the documentation of code_postaux 0.0.3 Download code_postaux 0.0.3 archive
0.0.2 Jun 22, 2016 Go to the documentation of code_postaux 0.0.2 Download code_postaux 0.0.2 archive
0.0.1 Jun 22, 2016 Go to the documentation of code_postaux 0.0.1 Download code_postaux 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
88 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
39 / 100
Overall score:
Weighted score of the above. [more]
34

Platforms

Detected platforms: web

Platform components identified in package: html, io.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use code_postaux.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
http >=0.11.3+7 <0.12.0 0.11.3+16
Transitive dependencies
async 2.0.3
charcode 1.1.1
collection 1.14.5
http_parser 3.1.1
path 1.5.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
Dev dependencies
test >=0.12.0 <0.13.0