X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/533bbf341a89f30d9e402939d9cff08074f32b47..e13ab673e45ea48de49661f7838e75925f405514:/src/datasource_google.c diff --git a/src/datasource_google.c b/src/datasource_google.c index 11c567dc..7cafd330 100644 --- a/src/datasource_google.c +++ b/src/datasource_google.c @@ -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);