bonjour,

Je voudrais utiliser certaines informations contenues dans un listing de resultat cree par l'api de google map

comme par exemple la valeur de la variable AdministrativeAreaName puis de la transformer cette variable en php.

Apres plusieur heure de recherche je n'ai toujours pas reussi.


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function getHtml(placemark){
     /* Implémentation du contenu du listing de résultats */ 
     htmlSidebar[i] = placemark.address;
     var html  = '<p style="width: 200px; font-size: 11px; font-family: verdana;">';
     html += placemark.address;
     html += '<br />';
     html += placemark.Point.coordinates[1] + ' - '+ placemark.Point.coordinates[0];
     html += '<br />';
     /* Si l'élément de réponse contient les informations liées à l'adresse
     postale du point, on les récupère */
     if (placemark.AddressDetails.Country.AdministrativeArea){
       var administrativeArea = placemark.AddressDetails.Country.AdministrativeArea;
       html += administrativeArea.AdministrativeAreaName;
       if (administrativeArea.SubAdministrativeArea){
         var subAdministrativeArea = administrativeArea.SubAdministrativeArea;
         html += '';
         html += subAdministrativeArea.SubAdministrativeAreaName;
         if (subAdministrativeArea.Locality){
           var locality = subAdministrativeArea.Locality;
           html += '<br />';
           html += locality.LocalityName;
           if (locality.DependentLocality){
             html += '<br />';
             html += locality.DependentLocality.DependentLocalityName;
           }
         }
       }
     }
     html += '</p>';
     return html;
   }
Une Idee?

Merci