Unofficial Dart implementation of Deutsche Bahn’s construction site API
https://pub.dev/packages/db_construction_site
您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Jonas Franz
92f8cb70f5
|
4 年前 | |
---|---|---|
example | 4 年前 | |
lib | 4 年前 | |
test | 4 年前 | |
.drone.yml | 4 年前 | |
.gitignore | 4 年前 | |
.metadata | 4 年前 | |
CHANGELOG.md | 4 年前 | |
LICENSE | 4 年前 | |
README.md | 4 年前 | |
analysis_options.yaml | 4 年前 | |
pubspec.lock | 4 年前 | |
pubspec.yaml | 4 年前 |
README.md
db_construction_site
Unofficial Dart implementation of Deutsche Bahn's construction site API. This library is not affiliated with Deutsche Bahn (DB). Please note that the API might change in the future making this library incompatible.
Usage
Add db_construction_site
to your pubspec.yaml
:
dependencies:
db_construction_site: ^0.0.1-dev
Import the package package:db_construction_site/db_construction_site.dart
and initiate a new instance of DBConstructionSite
you can pass another base url as a named constructor parameter if you'd like to.
import 'package:db_construction_site/db_construction_site.dart';
final constructionSite = DBConstructionSite();
or
import 'package:db_construction_site/db_construction_site.dart';
final constructionSite = DBConstructionSite(baseUrl: "https://your-new-base-url");