]> git.street.me.uk Git - andy/viking.git/blobdiff - src/datasource_google.c
When manually creating a track, automatically give it a default name.
[andy/viking.git] / src / datasource_google.c
index 11c567dc0e49c23e39c2ec5d21b437d010a2af9a..7cafd3300a30132e8052f72af4d5b2d6080583f7 100644 (file)
@@ -31,7 +31,7 @@
 #include "gpx.h"
 #include "acquire.h"
 
-#define GOOGLE_DIRECTIONS_STRING "maps.google.com/maps?q=from:%s+to:%s&output=js"
+#define GOOGLE_DIRECTIONS_STRING "maps.google.com/maps?q=from:%s+to:%s&output=kml"
 
 typedef struct {
   GtkWidget *from_entry, *to_entry;
@@ -59,6 +59,7 @@ VikDataSourceInterface vik_datasource_google_interface = {
   (VikDataSourceProgressFunc)          NULL,
   (VikDataSourceAddProgressWidgetsFunc)        NULL,
   (VikDataSourceCleanupFunc)           datasource_google_cleanup,
+  (VikDataSourceOffFunc)                NULL,
 };
 
 static gpointer datasource_google_init ( )
@@ -100,7 +101,7 @@ static void datasource_google_get_cmd_string ( datasource_google_widgets_t *widg
   to_quoted = g_strjoinv( "%20", to_split);
 
   *cmd = g_strdup_printf( GOOGLE_DIRECTIONS_STRING, from_quoted, to_quoted );
-  *input_file_type = g_strdup("google");
+  *input_file_type = g_strdup("kml");
 
   g_free(last_from_str);
   g_free(last_to_str);