@capgo/capacitor-nativegeocoder 8.0.52 → 8.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
# @capgo/capacitor-nativegeocoder
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Turn coordinates into addresses and addresses into coordinates from your Capacitor app with the native geocoders on iOS and Android.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_nativegeocoder"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-nativegeocoder" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: push fixes to your Capacitor users in minutes, build signed iOS and Android apps without a Mac, and roll back in one click.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_nativegeocoder">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_nativegeocoder">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-nativegeocoder/main/assets/github-social-preview.png" alt="@capgo/capacitor-nativegeocoder for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Reverse geocoding**: `reverseGeocode()` converts latitude and longitude to street, city, postal code and country.
|
|
21
|
+
- **Forward geocoding**: `forwardGeocode()` converts an address to coordinates.
|
|
22
|
+
- **Localized results**: `useLocale` and `defaultLocale` on iOS and Android. Web uses `defaultLocale` for the request language.
|
|
23
|
+
- **Result limit**: `maxResults` caps the number of matches.
|
|
24
|
+
- **Platforms**: iOS, Android and Web. iOS uses Core Location, Android uses `Geocoder`. Web calls the Google Geocoding API with your `apiKey`.
|
|
10
25
|
|
|
11
26
|
## Documentation
|
|
12
27
|
|
|
@@ -9,7 +9,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
9
9
|
@CapacitorPlugin(name = "NativeGeocoder")
|
|
10
10
|
public class NativeGeocoderPlugin extends Plugin {
|
|
11
11
|
|
|
12
|
-
private final String pluginVersion = "8.0.
|
|
12
|
+
private final String pluginVersion = "8.0.54";
|
|
13
13
|
|
|
14
14
|
private NativeGeocoder implementation = new NativeGeocoder();
|
|
15
15
|
|
|
@@ -7,7 +7,7 @@ import Capacitor
|
|
|
7
7
|
*/
|
|
8
8
|
@objc(NativeGeocoderPlugin)
|
|
9
9
|
public class NativeGeocoderPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
10
|
-
private let pluginVersion: String = "8.0.
|
|
10
|
+
private let pluginVersion: String = "8.0.54"
|
|
11
11
|
public let identifier = "NativeGeocoderPlugin"
|
|
12
12
|
public let jsName = "NativeGeocoder"
|
|
13
13
|
public let pluginMethods: [CAPPluginMethod] = [
|