Search
It passes

My posts, unless otherwise expressly stated, are licensed under a Creative Commons Attribution-Share Alike 2.5 Italy License.
(This should be a crosspost written with Massimiliano)
It seems that MarkerClusterer has a bug, fixed with this patch (*) written by Massimiliano while we were hunting together for it on this application (now working fine): after the ajax submit and zooming out, the library was still displaying old clusters and markers, because, after destroying MarkerClusterer, [...]
Partendo dall’eccellente lavoro di localMapping e utilizzando parte dei dati di un mio post precedente ho creato, con un piccolo script, il file comuni.kml, che abbina quindi i confini dei comuni piemontesi ai relativi codici ISTAT: Google Earth riesce a visualizzarlo mentre Google Maps no, dato che il file è per lui troppo grande; in [...]
I’ve written this very simple patch for the Pulpedia Google Maps PHP Polyline Encoder 0.1 which removes the warnings and runs properly with PHP5: in the very same directory you can find an example and the patched class.
This little example (which is a modified version of the one written by Sterling Udell) reads a KML file using Google Maps JavaScript API Version 3 and geoxml3 to display the markers within a little Firebug/jQuery/JSON callback (useTheData) that shows how to process them.
There is a discussion about the Google Maps/Google Earth APIs Terms of Service: the question is if we are allowed to use them for server side reverse geocoding; to be honest, I didn’t get so deeply acquainted with this subject but what is missing is a clear one line example (*). :)
(*) “Enter” in the [...]
Managing KML files with GGeoXml is easy but you can’t use it when your KML is not reachable by Google: you’d better parse it by hand with GXml.
Using the JavaScript Google Maps API V2, I wrote the following example (whose KML is valid like its XHTML Strict) as a starting point when you need to [...]
The official PHP/MySQL Google Maps Geocoding example uses simplexml_load_file that doesn’t handle a proxy so if your script is behind a proxy, you can’t use it.
The problem can be overcome by using stream_context_create and file_get_contents as described in the following snippet:
$request_url = $base_url . "&q=" . urlencode($address);
$params = array (
‘http’ => array (
[...]
Dopo aver scritto ed eseguito uno script, ecco latitudine e longitudine (secondo Google Maps) di tuti i 1206 Comuni del Piemonte, per gli usi più improbabili. :)
Il file (CSV) comprende:
Codice ISTAT;
Comune;
Provincia (Sigla);
Latitudine;
Longitudine.