-static int real_google_download ( MapCoord *src, const gchar *dest_fn, const char *verstr )
-{
- int res;
- gchar *uri = g_strdup_printf ( "/mt?n=404&v=%s&x=%d&y=%d&zoom=%d", verstr, src->x, src->y, src->scale );
- res = a_http_download_get_url ( "mt.google.com", uri, dest_fn, &google_options );
- g_free ( uri );
- return res;
-}
-
-static int google_download ( MapCoord *src, const gchar *dest_fn )
-{
- const gchar *vers_str = google_version_number(src, TYPE_GOOGLE_MAPS);
- return(real_google_download ( src, dest_fn, vers_str ));
-}
-
-static int google_trans_download ( MapCoord *src, const gchar *dest_fn )
-{
- const gchar *vers_str = google_version_number(src, TYPE_GOOGLE_TRANS);
- return(real_google_download ( src, dest_fn, vers_str ));
-}
-
-static int google_terrain_download ( MapCoord *src, const gchar *dest_fn )
-{
- const gchar *vers_str = google_version_number(src, TYPE_GOOGLE_TERRAIN);
- return(real_google_download ( src, dest_fn, vers_str ));
-}
-