code_postaux 1.0.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 23

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

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

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

Platforms

Detected platforms: web

Platform components identified in package: html, io.

Suggestions

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 2 errors 2 hints.

    Strong-mode analysis of lib/code_postaux_html.dart failed with the following error:

    line: 23 col: 14
    The function expression type '(List<dynamic>) → City' isn't of type '(dynamic) → City'. This means its parameter or return type does not match what is expected. Consider changing parameter type(s) or the returned type(s).

    Strong-mode analysis of lib/code_postaux_io.dart failed with the following error:

    line: 23 col: 14
    The function expression type '(List<dynamic>) → City' isn't of type '(dynamic) → City'. This means its parameter or return type does not match what is expected. Consider changing parameter type(s) or the returned type(s).

    Similar analysis of the following files failed:

    • lib/src/html.dart (hint)
    • lib/src/io.dart (hint)
  • 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.6
charcode 1.1.1
collection 1.14.9
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