Google Mashup using C ++

Is it possible, or desirable, to try to create a mashup on Google Maps using C ++? I would need to display 150 places around the county, and when people click on the pusher, a picture of the location should appear and, possibly, a brief description of the landscape.

C ++ is the only language I know, as that is all I have learned so far in school. This is not homework, but rather what I thought I could do for work and for pleasure.

+3
source share
5 answers

This is certainly possible (for example, as a standalone GUI application). But, is it appropriate? I would not say so if you do not plan to do this as a training project.

++ - , , , .

.

Javascript , , -. , , , , cpp; .

+5

API GMaps - JavaScript, , , Javascript. , CGI- ++, JavaScript HTML.

+2

, , , ++ ( ), javascript Google api , - ++. , (150 ), API- javascript.

+2

FWIW - KML , GE . , , GE "" - , .

, , ( ).

FILE* pFile = std::fopen(fspec.c_str(),"w");
std::fprintf(pFile,"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
std::fprintf(pFile,"<kml xmlns=\"http://earth.google.com/kml/2.0\">\n");
std::fprintf(pFile,"    <Placemark>\n");
std::fprintf(pFile,"      <name>%s %s %s</name>\n",eosite.Ident.c_str(),epochStr.c_str(),eosite.Nomenclature.c_str());
std::fprintf(pFile,"      <LookAt>\n");
std::fprintf(pFile,"        <longitude>%Lf</longitude>\n",lon);
std::fprintf(pFile,"        <latitude>%Lf</latitude>\n",lat);
std::fprintf(pFile,"        <range>%0.5Lf</range>\n",aosRange); // range from eye to point site, consider altitude & angle
std::fprintf(pFile,"        <tilt>%0.5Lf</tilt>\n",(90.L - srtl::radtodeg(aosElev))); // Horizon is down 18 deg at iss typ. altitude
std::fprintf(pFile,"        <heading>%0.5Lf</heading>\n",srtl::radtodeg(aosAzimuth)); // calc az to target at aos or mel & insert here
std::fprintf(pFile,"      </LookAt>\n");
std::fprintf(pFile,"      <styleUrl>root://styles#default</styleUrl>\n");
std::fprintf(pFile,"      <Point>\n");
std::fprintf(pFile,"        <coordinates>%Lf,%Lf,%Lf</coordinates>\n", lon, lat, 0.L); // site coords
std::fprintf(pFile,"      </Point>\n");
std::fprintf(pFile,"    </Placemark>\n");
std::fprintf(pFile,"</kml>\n");
std::fclose(pFile);
pFile = NULL;
+1

I wrote a flash app some time ago to use Google tile servers. It really is not that difficult.

Cards are recursively subdivided into 2x2 squares, and a formula can be obtained.

This thread should be interesting:

http://groups.google.com/group/google-maps-api/browse_thread/thread/a09932b9a971cf26/9986f9a3cbc034e3?#9986f9a3cbc034e3

0
source

Source: https://habr.com/ru/post/1724892/


All Articles