cap-go / capacitor-nativegeocoder Goto Github PK
View Code? Open in Web Editor NEWCapacitor plugin for native forward and reverse geocoding
License: MIT License
Capacitor plugin for native forward and reverse geocoding
License: MIT License
When trying to install the plugin on a Capacitor 4 app, the following error occurs:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @capacitor/[email protected]
npm ERR! node_modules/@capacitor/core
npm ERR! dev @capacitor/core@"^4.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"^3.0.0" from @capgo/[email protected]
npm ERR! node_modules/@capgo/nativegeocoder
npm ERR! @capgo/nativegeocoder@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
Hello! I see that nativegeocoder must be bumped to Capacitor v5
Cheers
It seems there is a missing ? in the url called, in the forwardGeocoding.
When trying, it calls https://maps.googleapis.com/maps/api/geocode/jsonaddress=
instead of https://maps.googleapis.com/maps/api/geocode/json?address=
I just tried using this plugin to reverse geocode on web and passed in the required parameters: latitude
, longitude
, and apiKey
. however, it returned 0 addresses. I then manually put the generated url into my browser. with result_type=street_address
, there are indeed no results, but without that parameter, I get several results. it seems they have types like bar
, establishment
, and store
. they just don't have street_address
.
is it possible to remove this parameter or at least make it a configurable option?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
ios/Podfile
.github/workflows/build.yml
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
actions/setup-java v3
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
JS-DevTools/npm-publish v1
JS-DevTools/npm-publish v1
.github/workflows/bump_version.yml
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
.github/workflows/test.yml
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
actions/setup-java v3
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
android/gradle.properties
android/settings.gradle
android/build.gradle
com.android.tools.build:gradle 8.4.1
android/gradle/wrapper/gradle-wrapper.properties
gradle 8.7
example/package.json
package.json
@capacitor/android ^6.0.0
@capacitor/cli ^6.0.0
@capacitor/core ^6.0.0
@capacitor/docgen ^0.2.2
@capacitor/ios ^6.0.0
@ionic/eslint-config ^0.3.0
@ionic/prettier-config ^4.0.0
@ionic/swiftlint-config ^1.1.2
@typescript-eslint/eslint-plugin ^7.8.0
@typescript-eslint/parser ^7.8.0
eslint ^9.1.1
eslint-plugin-import ^2.29.1
husky ^9.0.11
prettier ^3.2.5
prettier-plugin-java ^2.6.0
rimraf ^5.0.5
rollup ^4.17.1
swiftlint ^1.0.2
typescript ^5.4.5
@capacitor/core ^6.0.0
I'm examining the results form this plugin and while I get a bunch of address components, there's no formatted_address
field. when examining the network traffic through web, I see that the response indeed includes formatted_address
but looking at the source code, I think this plugin doesn't forward that info.
is there a thinking behind this? I could simply reconstruct the formatted address from the address components that are returned, but why not just pass through formatted_address
if it's already given?
Not sure if it is linked to the plugin or my implementation of it (with TypeScript) but I receive this error when I call NativeGeocoding.forwardGeocode():
Error: TypeError: Cannot read properties of undefined (reading 'slice')
at web.ts:105:1
at async createMap (index.tsx:54:1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.