mirror of
https://github.com/Threnklyn/pebble-directions.git
synced 2026-06-13 17:43:32 +02:00
bug fixes; pebble app-store release 1.0
* this is the release version 1.0 to the pebble app-store
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
#define MESSAGE_PADDING 10
|
#define MESSAGE_PADDING 10
|
||||||
#define MAX_STEP_COUNT 20
|
#define MAX_STEP_COUNT 20
|
||||||
#define MAX_STEP_CHARS 128
|
#define MAX_STEP_CHARS 128
|
||||||
|
#define ADDRESS_MAX_CHARS 128
|
||||||
|
|
||||||
// Progress display vals
|
// Progress display vals
|
||||||
#define PROGRESS_SEARCH_SEND 50
|
#define PROGRESS_SEARCH_SEND 50
|
||||||
@@ -44,7 +45,7 @@ static GBitmap *icon_step_final;
|
|||||||
|
|
||||||
// Dictation input
|
// Dictation input
|
||||||
static DictationSession *dictation_session;
|
static DictationSession *dictation_session;
|
||||||
static char *address;
|
static char address[ADDRESS_MAX_CHARS];
|
||||||
|
|
||||||
// Route data / App message
|
// Route data / App message
|
||||||
struct RouteData *route_data;
|
struct RouteData *route_data;
|
||||||
@@ -125,7 +126,7 @@ static void dictation_session_callback(DictationSession *session, DictationSessi
|
|||||||
// Test if dication was successfull
|
// Test if dication was successfull
|
||||||
if (status == DictationSessionStatusSuccess) {
|
if (status == DictationSessionStatusSuccess) {
|
||||||
// Store the address and load a route
|
// Store the address and load a route
|
||||||
address = transcript;
|
strcpy(address, transcript);
|
||||||
// Send the search data
|
// Send the search data
|
||||||
app_message_send_search_data();
|
app_message_send_search_data();
|
||||||
} else {
|
} else {
|
||||||
@@ -410,7 +411,7 @@ static void window_load() {
|
|||||||
progress_layer = progress_layer_create(bounds);
|
progress_layer = progress_layer_create(bounds);
|
||||||
|
|
||||||
// Set up the dictation session
|
// Set up the dictation session
|
||||||
dictation_session = dictation_session_create(0, dictation_session_callback, NULL);
|
dictation_session = dictation_session_create(ADDRESS_MAX_CHARS, dictation_session_callback, NULL);
|
||||||
dictation_session_enable_confirmation(dictation_session, true);
|
dictation_session_enable_confirmation(dictation_session, true);
|
||||||
dictation_session_enable_error_dialogs(dictation_session, true);
|
dictation_session_enable_error_dialogs(dictation_session, true);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ function loadLocationForSearch(searchText, currentLat, currentLon, callback) {
|
|||||||
url = url.concat(hereAppId);
|
url = url.concat(hereAppId);
|
||||||
url = url.concat('&app_code=').concat(hereAppCode);
|
url = url.concat('&app_code=').concat(hereAppCode);
|
||||||
url = url.concat('&gen=9'); /*don't break on here api update*/
|
url = url.concat('&gen=9'); /*don't break on here api update*/
|
||||||
url = url.concat('&searchtext=').concat(searchText.split(' ').join('+'));
|
url = url.concat('&searchtext=').concat(encodeURI(searchText.split(' ').join('+')));
|
||||||
url = url.concat('&prox=').concat(currentLat).concat(',').concat(currentLon).concat(',50000'); /* favour results within 50 km range */
|
url = url.concat('&prox=').concat(currentLat).concat(',').concat(currentLon).concat(',50000'); /* favour results within 50 km range */
|
||||||
// Perform an request
|
// Perform an request
|
||||||
makeJsonHttpGetRequest(url, function(success, res) {
|
makeJsonHttpGetRequest(url, function(success, res) {
|
||||||
|
|||||||
Reference in New Issue
Block a user