This Pebble watchapp provides real-time travel time and distance information from your current location to your selected destination. It uses the NextBillion.ai Navigation API to fetch live routing data.
- Real-time Updates: Automatically refreshes travel data every 60 seconds.
- Distance Display: Shows the travel distance in miles.
- Travel Time: Displays the estimated duration in HH:MM format.
- Status Timestamp: Shows the exact time of the last successful data retrieval.
- Custom UI: Includes a custom vector navigation icon and a rebranded interface using NextBillion.ai colors.
- Multi-Platform Support: Compatible with Pebble Aplite (B&W), Basalt (Color), and Chalk (Round) watches.
To use this app, you must provide a valid NextBillion.ai API key.
- Open
src/js/pebble-js-app.js. - Locate the
myAPIKeyvariable at the top of the file:var myAPIKey = 'YOUR_NEXTBILLION_API_KEY_HERE';
- Replace the placeholder with your actual API key.
- The JavaScript component (
src/js/pebble-js-app.js) handles the communication with the NextBillion.ai API. - The C component (
src/navigation.c) manages the watch's UI layers, including the custom-drawn navigation arrow and high-visibility text layers for distance and duration. - Data is synchronized between the phone and the watch using the Pebble
AppSyncframework.
Developed using NextBillion.ai Navigation services. Original boilerplate provided by the Pebble SDK examples.
