@@ -624,7 +624,7 @@ GraphView::loadGoogleMap()
624624 // system(qPrintable(XMLlocationCommand));
625625
626626 QString tmpDir = topviewGraph_->getProjectData ()->tempDir .path () + " /" ;
627- downloadFile (tmpDir + " location.xml" , " https://maps.google.com/maps/api/geocode/xml?address=" + location + " &key=AIzaSyCvZVXlu-UfJdPUb6_66YHjyPj4qHKc_Wc " );
627+ downloadFile (tmpDir + " location.xml" , " https://maps.google.com/maps/api/geocode/xml?address=" + location + " &key=" + APISettings::instance ()-> GoogleAPIKey );
628628
629629 QString lat = " 48.73964" ;
630630 QString lon = " 9.09725" ;
@@ -695,7 +695,7 @@ GraphView::loadGoogleMap()
695695 QString style = " &style=feature:all|element:labels|visibility:off" ;
696696 // QString uploadPrefix = "wget -O ";
697697 QString uploadPrefix2 = " https://maps.googleapis.com/maps/api/staticmap?center=" ;
698- QString uploadPostfix = " &zoom=" + zoom + " &maptype=" + maptype + style + " &size=1200x1200&scale=2&key=AIzaSyCvZVXlu-UfJdPUb6_66YHjyPj4qHKc_Wc " ;
698+ QString uploadPostfix = " &zoom=" + zoom + " &maptype=" + maptype + style + " &size=1200x1200&scale=2&key=" + APISettings::instance ()-> GoogleAPIKey ;
699699
700700
701701 // this equation was calculated by calibrating the latitude offset to a variety of locations. this is the equation of the line of best fit.
@@ -842,7 +842,7 @@ GraphView::loadBingMap()
842842
843843 // system(qPrintable(XMLlocationCommand));
844844
845- downloadFile (tmpDir + " location.xml" , " https://maps.google.com/maps/api/geocode/xml?address=" + location + " &key=AIzaSyCvZVXlu-UfJdPUb6_66YHjyPj4qHKc_Wc " );
845+ downloadFile (tmpDir + " location.xml" , " https://maps.google.com/maps/api/geocode/xml?address=" + location + " &key=" + APISettings::instance ()-> GoogleAPIKey );
846846
847847 QString lat = " 48.73964" ;
848848 QString lon = " 9.09725" ;
@@ -911,7 +911,7 @@ GraphView::loadBingMap()
911911
912912 // system(qPrintable(XMLlocationCommandBing));
913913
914- downloadFile (" locationBing.xml" , " http://dev.virtualearth.net/REST/v1/Imagery/Map/Aerial/" + lat + " ," + lon + " /19?mapSize=1500,1500&mapMetadata=1&o=xml&key=AlG2vgS1nf8uEEiq4ypPUu3Be-Mr1QOWiTj_lY55b8RAVNl7h3v1Bx0nTqavOJDm " );
914+ downloadFile (" locationBing.xml" , " http://dev.virtualearth.net/REST/v1/Imagery/Map/Aerial/" + lat + " ," + lon + " /19?mapSize=1500,1500&mapMetadata=1&o=xml&key=" + APISettings::instance ()-> BINGAPIKey );
915915
916916
917917
@@ -1017,7 +1017,7 @@ GraphView::loadBingMap()
10171017
10181018 QString uploadPrefix = " wget -O " ;
10191019 QString uploadPrefix2 = " http://dev.virtualearth.net/REST/V1/Imagery/Map/Aerial/" ;
1020- QString uploadPostfix = " /19?mapSize=1500,1500&key=AlG2vgS1nf8uEEiq4ypPUu3Be-Mr1QOWiTj_lY55b8RAVNl7h3v1Bx0nTqavOJDm " ;
1020+ QString uploadPostfix = " /19?mapSize=1500,1500&key=" + APISettings::instance ()-> BINGAPIKey ;
10211021
10221022
10231023
0 commit comments