A_Skwar
Tourist
Reged: 06/13/06
Posts: 6
Loc: Wuppertal, Germany
|
|
Hello.
I'd like to create a KML file which lists all the LPG/autogas fueling stations in Germany. I do have access to a database which is daily updated with added/removed gas stations and also with current prices.
As this database changes very often and is rather big (~1500 places in Germany alone right now), I'd rather not update a KML/KMZ file here every day. I'd rather have it so, that Google Earth automatically fetches the most current data from my server. Much like it's done with the "Google Earth Community" layer.
How can this be done?
Thanks a lot, Alexander
|
Valery35
Master Craftsman
Reged: 09/02/05
Posts: 2269
Loc: Russia, Perm, Sun
|
|
1. Create KMZ with placemarks and store this by "http://mysite/myfile.kmz" 2. Create Network link, open Property and paste into string Link path to base kmz file ("http://mysite/myfile.kmz") 3. If base kmz file large, you can place this as distribute KMZ ("http://mysite/myfile1.kmz", "http://mysite/myfile2.kmz"...) and make folder with need count of network links
Myfile (folder) -NL1 (to "http://mysite/myfile1.kmz") -NL2 (to "http://mysite/myfile2.kmz") ...
Also can see my flash animations "Step 3. My first network link". http://www.mi-perm.ru/gis/earth/present/step3.htm
Example (and history) of large NL see http://bbs.keyhole.com/ubb/showflat.php/Cat/0/Number/220598
Regards!
-------------------- Applications | Blog | Geoblog(ru) | Spreadsheets | Photos | Pict'Earth | Eastgeology (ru)
Edited by Valery35 (08/18/06 04:39 PM)
|
A_Skwar
Tourist
Reged: 06/13/06
Posts: 6
Loc: Wuppertal, Germany
|
|
Thanks a lot - now everything's clear!
|
linus_atpug
Tourist
Reged: 07/15/05
Posts: 25
Loc: Berkshire, england
|
|
better still follow the api guidelines, write your PHP or whatever server side code that interrogates a database and all it has to do is spit out valid KML.
your script has to expect a parameter on the querystring callled BBOX which contains the top left and bottom right latitude and longitudes of the current viewport in google earth
. eg http//yourserver.com/yourdynamiclayerurl?BOX=-0.8552169799804689,51.407879760074316,-0.7137680053710938,51.456574106519724
the instructions in the API guide are not particularly easy to follow so best way id to create an example kml by hand and then write your code to generate that kml.
|