Skip to content

Commit 3d0dd89

Browse files
authored
docs: fixes all formatting and link issues (Baseflow#249)
* docs: fix build status not rendering properly * docs: fixes all formatting and link issues
1 parent 6ea0e33 commit 3d0dd89

File tree

4 files changed

+43
-39
lines changed

4 files changed

+43
-39
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
[![pub package](https://img.shields.io/pub/v/geocoding.svg)](https://pub.dartlang.org/packages/geocoding)
44
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
55
[![style: effective dart](https://img.shields.io/badge/style-effective_dart-40c4ff.svg)](https://github.com/tenhobi/effective_dart)
6-
[![Buid status](https://github.com/Baseflow/flutter-geocoding/workflows/Geocoding/badge.svg)](https://github.com/Baseflow/flutter-geocoding/actions?query=workflow%3AGeocoding)
6+
[![Buid status](https://github.com/Baseflow/flutter-geocoding/actions/workflows/geocoding.yaml/badge.svg)](https://github.com/Baseflow/flutter-geocoding/actions/workflows/geocoding.yaml)
77
[![codecov](https://codecov.io/gh/Baseflow/flutter-geocoding/branch/main/graph/badge.svg)](https://codecov.io/gh/Baseflow/flutter-geocoding)
88

99
The Flutter geocoding plugin is build following the federated plugin architecture. A detailed explanation of the federated plugin concept can be found in the [Flutter documentation](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins). This means the geocoding plugin is separated into the following packages:
1010

1111
1. [`geocoding`][1]: the app facing package. This is the package users depend on to use the plugin in their project. For details on how to use the [`geocoding`][1] plugin you can refer to its [README.md][2] file. At this moment the Android and iOS platform implementations are also part of this package;
12-
3. [`geocoding_platform_interface`][3]: this packages declares the interface which all platform packages must implement to support the app-facing package. Instructions on how to implement a platform packages can be found in the [README.md][4] of the [`geocoding_platform_interface`][3] package.
12+
2. [`geocoding_platform_interface`][3]: this packages declares the interface which all platform packages must implement to support the app-facing package. Instructions on how to implement a platform packages can be found in the [README.md][4] of the [`geocoding_platform_interface`][3] package.
1313

1414
[1]: ./geocoding
1515
[2]: ./geocoding/README.md
1616
[3]: ./geocoding_platform_interface
17-
[4]: ./geocoding_platform_interface/README.md
17+
[4]: ./geocoding_platform_interface/README.md

geocoding/README.md

+31-29
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,73 @@
1-
# Flutter Geocoding Plugin
1+
# Flutter Geocoding Plugin
22

33
[![pub package](https://img.shields.io/pub/v/geocoding.svg)](https://pub.dartlang.org/packages/geocoding)
44
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
55
[![style: effective dart](https://img.shields.io/badge/style-effective_dart-40c4ff.svg)](https://github.com/tenhobi/effective_dart)
6-
[![Buid status](https://github.com/Baseflow/flutter-geocoding/workflows/Geocoding/badge.svg)](https://github.com/Baseflow/flutter-geocoding/actions?query=workflow%3AGeocoding)
6+
[![Buid status](https://github.com/Baseflow/flutter-geocoding/actions/workflows/geocoding.yaml/badge.svg)](https://github.com/Baseflow/flutter-geocoding/actions/workflows/geocoding.yaml)
77
[![codecov](https://codecov.io/gh/Baseflow/flutter-geocoding/branch/main/graph/badge.svg)](https://codecov.io/gh/Baseflow/flutter-geocoding)
88

99
A Flutter Geocoding plugin which provides easy geocoding and reverse-geocoding features.
1010

11-
**Important**:
11+
**Important**:
1212

1313
1. This plugin uses the free Geocoding services provided by the iOS and Android platforms. This means that there are restrictions to their use. More information can be found in the [Apple documentation for iOS](https://developer.apple.com/documentation/corelocation/clgeocoder) and the [Google documentation for Android](https://developer.android.com/reference/android/location/Geocoder).
1414
When a `PlatformException(IO_ERROR, ...)` gets thrown, most of the times it means that the rate limit has been reached.
15-
2. The availability of the Google Play Services depends on your country. If your country doesn't support a connection with the Google Play Services, you'll need to try a VPN to establish a connection. For more information about how to work with Google Play Services visit the following link: https://developers.google.com/android/guides/overview
15+
2. The availability of the Google Play Services depends on your country. If your country doesn't support a connection with the Google Play Services, you'll need to try a VPN to establish a connection. For more information about how to work with Google Play Services visit the following link: https://developers.google.com/android/guides/overview
1616

1717
## Usage
1818

1919
To use this plugin, please follow the installation guide on the [official geocoding plugin page](https://pub.dev/packages/geocoding/install).
2020

21-
> **NOTE:** This plugin relies on the AndroidX version of the Android Support Libraries. This means you need to make sure your Android project is also upgraded to support AndroidX. Detailed instructions can be found [here](https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility).
21+
> **NOTE:** This plugin relies on the AndroidX version of the Android Support Libraries. This means you need to make sure your Android project is also upgraded to support AndroidX. Detailed instructions can be found [here](https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility).
2222
>
23-
>The TL;DR version is:
23+
> The TL;DR version is:
2424
>
25-
>1. Add the following to your "gradle.properties" file:
25+
> 1. Add the following to your "gradle.properties" file:
2626
>
27-
>```
28-
>android.useAndroidX=true
29-
>android.enableJetifier=true
30-
>```
31-
>2. Make sure you set the `compileSdkVersion` in your "android/app/build.gradle" file to 33:
27+
> ```properties
28+
> android.useAndroidX=true
29+
> android.enableJetifier=true
30+
> ```
3231
>
33-
>```
34-
>android {
35-
> compileSdkVersion 33
32+
> 2. Make sure you set the `compileSdkVersion` in your "android/app/build.gradle" file to 33:
3633
>
37-
> ...
38-
>}
39-
>```
40-
>3. Make sure you replace all the `android.` dependencies to their AndroidX counterparts (a full list can be found [Android migration guide](https://developer.android.com/jetpack/androidx/migrate)).
34+
> ```gradle
35+
> android {
36+
> compileSdkVersion 33
37+
>
38+
> ...
39+
> }
40+
> ```
41+
>
42+
> 3. Make sure you replace all the `android.` dependencies to their AndroidX counterparts (a full list can be found [Android migration guide](https://developer.android.com/jetpack/androidx/migrate)).
4143
4244
## API
4345
4446
To translate an address into latitude and longitude coordinates you can use the `placemarkFromAddress` method:
4547
46-
``` dart
48+
```dart
4749
import 'package:geocoding/geocoding.dart';
4850
4951
List<Location> locations = await locationFromAddress("Gronausestraat 710, Enschede");
5052
```
5153
5254
If you want to translate latitude and longitude coordinates into an address you can use the `placemarkFromCoordinates` method:
5355

54-
``` dart
56+
```dart
5557
import 'package:geocoding/geocoding.dart';
5658
5759
List<Placemark> placemarks = await placemarkFromCoordinates(52.2165157, 6.9437819);
5860
```
5961

60-
The setLocaleIdentifier with the `localeIdentifier` parameter can be used to enforce the results to be formatted (and translated) according to the specified locale. The `localeIdentifier` should be formatted using the syntax: [languageCode]_[countryCode]. Use the [ISO 639-1 or ISO 639-2](https://www.loc.gov/standards/iso639-2/php/English_list.php) standard for the language code and the 2 letter [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard for the country code. Some examples are:
62+
The setLocaleIdentifier with the `localeIdentifier` parameter can be used to enforce the results to be formatted (and translated) according to the specified locale. The `localeIdentifier` should be formatted using the syntax: [languageCode]\_[countryCode]. Use the [ISO 639-1 or ISO 639-2](https://www.loc.gov/standards/iso639-2/php/English_list.php) standard for the language code and the 2 letter [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard for the country code. Some examples are:
6163

62-
Locale identifier | Description
63-
----------------- | -----------
64-
en | All English speakers (will translate all attributes to English)
65-
en_US | English speakers in the United States of America
66-
en_UK | English speakers in the United Kingdom
67-
nl_NL | Dutch speakers in The Netherlands
68-
nl_BE | Dutch speakers in Belgium
64+
| Locale identifier | Description |
65+
| ----------------- | --------------------------------------------------------------- |
66+
| en | All English speakers (will translate all attributes to English) |
67+
| en_US | English speakers in the United States of America |
68+
| en_UK | English speakers in the United Kingdom |
69+
| nl_NL | Dutch speakers in The Netherlands |
70+
| nl_BE | Dutch speakers in Belgium |
6971

7072
## Issues
7173

geocoding_android/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# geocoding\_android
1+
# geocoding_android
22

33
The android implementation of [`geocoding`][1].
44

@@ -8,4 +8,4 @@ This package is [endorsed][2], which means you can simply use `geocoding`
88
normally. This package will be automatically included in your app when you do.
99

1010
[1]: https://pub.dev/packages/geocoding
11-
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
11+
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin

geocoding_platform_interface/README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# geocoding_platform_interface
22

3-
[![pub package](https://img.shields.io/pub/v/geocoding_platform_interface.svg)](https://pub.dartlang.org/packages/geocoding_platform_interface) ![Build status](https://github.com/Baseflow/flutter-geocoding/workflows/geocoding_platform_interface/badge.svg?branch=main) [![style: flutter_lints](https://img.shields.io/badge/style-flutter_lints-40c4ff.svg)](https://pub.dev/packages/flutter_lints)
3+
[![pub package](https://img.shields.io/pub/v/geocoding_platform_interface.svg)](https://pub.dartlang.org/packages/geocoding_platform_interface)
4+
[![Buid status](https://github.com/Baseflow/flutter-geocoding/actions/workflows/geocoding_platform_interface.yaml/badge.svg)](https://github.com/Baseflow/flutter-geocoding/actions/workflows/geocoding_platform_interface.yaml)
5+
[![style: flutter_lints](https://img.shields.io/badge/style-flutter_lints-40c4ff.svg)](https://pub.dev/packages/flutter_lints)
46

57
A common platform interface for the [`geocoding`][1] plugin.
68

79
This interface allows platform-specific implementations of the `geocoding`
810
plugin, as well as the plugin itself, to ensure they are supporting the
9-
same interface. Have a look at the [Federated plugins](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins)
10-
section of the official [Developing packages & plugins](https://flutter.dev/docs/development/packages-and-plugins/developing-packages)
11-
documentation for more information regarding the federated architecture concept.
11+
same interface. Have a look at the [Federated plugins](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins)
12+
section of the official [Developing packages & plugins](https://flutter.dev/docs/development/packages-and-plugins/developing-packages)
13+
documentation for more information regarding the federated architecture concept.
1214

1315
## Usage
1416

@@ -39,4 +41,4 @@ If you would like to contribute to the plugin (e.g. by improving the documentati
3941
This Geocoding plugin for Flutter is developed by [Baseflow](https://baseflow.com).
4042

4143
[1]: ../geocoding
42-
[2]: lib/geocoding_platform_interface.dart
44+
[2]: lib/geocoding_platform_interface.dart

0 commit comments

Comments
 (0)