In order for Park It to work, you'll need to get the parked location and store it for later use. In this video, Tom Duffy explains how to get the device's location and use local storage to store it on the device.
- [Narrator] It's now finally time…to write the setParkingLocation function.…Let's add the setParkingLocation function to the script.…At the bottom of ParkIt.js, add the function declaration.…The setParkingLocation function delegates…determining the devices position…to the getCurrentPosition method of the geolocation object.…The geolocation object is a child of the navigator object.…
You can see getCurrentPosition is built…into the geolocation object.…It takes three arguments.…The first argument is a pointer to a function to call…if the method is successful.…I'm going to call that function setParkingLocationSuccess.…The second argument gives a pointer to a function…that will get called if something goes wrong.…I'm going to call that locationError.…
- Understanding Cordova's value proposition
- Installing the Cordova CLI
- Accessing mobile device capabilities, including geolocation and data storage
- Using Android Studio and Xcode in conjunction with Cordova
- Creating platform-specific stylings to match native interfaces
Skill Level Beginner
React Native: Building Mobile Appswith Steven Emmerich1h 59m Intermediate
Ionic 2 and AngularFire2: Building Mobile Appswith Steven Emmerich57m 27s Intermediate
Android Studio Essential Trainingwith David Gassner3h 41m Beginner
Ionic 3.0 for Mobile App Developerswith Sani Yusuf5h 43m Advanced
1. Cordova's Value Proposition
What is Cordova?2m 21s
2. Creating the Web App
3. Installing and Using Cordova
4. Using Cordova with Platform Tools
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.