Comments (4)
Hey @EddyVerbruggen never mind - I see in the demo code how to add it. Apologies bud, you can close this issue/question :)
As always, awesome work and thanks for your superb examples and documentation!!
from nativescript-directions.
@EddyVerbruggen apologies bud, another question: If I have both the address and the coordinates, is there a way to default to the coordinates if the address isn't found? I'm wondering incase people enter their address incorrectly (spelling mistakes) but have also included their location coordinates (which I do cater for) whether the app can default to that.
Please let me know :)
from nativescript-directions.
The plugin passes the source
to the native apps and it has to be one or the other (no fallback possible). If you know the coordinates just use that.
For completeness, here's the plugin code that calls the native apps:
nativescript-directions/src/directions.common.ts
Lines 58 to 68 in efd5f64
from nativescript-directions.
Thanks @EddyVerbruggen I wrote my code to check for coordinates and to fail to the address if no coordinates are found. I'm essentially trying to ensure that I use the right location, even if users (dumb ones...) spell their street name incorrectly...
Thanks though!
from nativescript-directions.
Related Issues (20)
- Can't run demo HOT 8
- Align with the official NativeScript plugin seed
- Problem with current location HOT 4
- Android: Google Maps open in my Nativescript App HOT 3
- Fall back to web on Google, if Maps is not available
- Lat, Long for to address HOT 2
- Feature request - add support in waze HOT 7
- Open waze app
- Issue while using in angular 6 HOT 5
- Demo App: Clicking on any of the buttons does nothing
- preferGoogleMaps is not working HOT 10
- application.android.currentContext has been removed in NativeScript 6 HOT 1
- TypeError: Cannot read property 'startActivityForResult' of undefined HOT 4
- Optimize way points HOT 2
- Android - Opening Map App instead of URL on top of my app
- Opens DB Navigator instead of Google Maps
- Release 1.4 not published on npm HOT 1
- Question: How many addresses does the navigate function can handle? HOT 3
- Directions.available bug HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-directions.