Weetos,

I look my geocache in Zope management interface
- http://[your zenoss host]:8080/zport/dmd/manage
- on the tab above, choose properties, you'll see the geocache field string

So far, I have tried 3 formats of address input. Here's an example of a node 
outside USA :
1. Jalan Asia Afrika, Bandung, West Java, Indonesia
2. 6°55'17.93"S
    107°36'42.25"E
3. -6.921647, 107.611736

Here's what happened in my case :
When I was first using Zenoss (2.3.2), #1 didn't point anywhere resulting blank 
map. So I tried #2 and it worked fine until this geocode cache issue happened 
in 2.4.0.

Actually now #1 is working well in 2.4.1 but still the geocode cache issue 
persists.

Then I observed the geocache based on those 3 formats.
Here's the geocache for format #1 :


Code:
{"aa":{"jalan asia afrika bandung west java 
indonesia":{"Placemark":[{"AddressDetails":{"Accuracy":6,"Country":{"AdministrativeArea":{"AdministrativeAreaName":"West
 
Java","Locality":{"LocalityName":"Bandung","Thoroughfare":{"ThoroughfareName":"Jalan
 Asia 
Afrika"}}},"CountryName":"Indonesia","CountryNameCode":"ID"}},"ExtendedData":{"LatLonBox":{"east":107.6176186,"north":-6.9184284,"south":-6.9247236,"west":107.604101}},"Point":{"coordinates":[107.609972,-6.921488,0]},"address":"Jalan
 Asia Afrika, Bandung, 
Indonesia","id":"p1"}],"Status":{"code":200,"request":"geocode"},"name":"Jalan 
Asia Afrika, Bandung, West Java, Indonesia"}}}




Now here's the geocache for format #2 :


Code:
{"aa":{"6°55'17.93\"s 
107°36'42.25\"e":{"Placemark":[{"AddressDetails":{"Accuracy":6,"Country":{"AdministrativeArea":{"AdministrativeAreaName":"West
 
Java","Locality":{"DependentLocality":{"DependentLocalityName":"Karanganyar","Thoroughfare":{"ThoroughfareName":"Jalan
 Asia 
Afrika"}},"LocalityName":"Bandung"}},"CountryName":"Indonesia","CountryNameCode":"ID"}},"ExtendedData":{"LatLonBox":{"east":107.6141326,"north":-6.9184679,"south":-6.9247631,"west":107.6078374}},"Point":{"coordinates":[107.610985,-6.9216155,0]},"address":"Jalan
 Asia Afrika, Bandung, 
Indonesia","id":"p1"},{"AddressDetails":{"Accuracy":4,"Country":{"AdministrativeArea":{"AdministrativeAreaName":"West
 
Java","Locality":{"DependentLocality":{"DependentLocalityName":"Karanganyar"},"LocalityName":"Bandung"}},"CountryName":"Indonesia","CountryNameCode":"ID"}},"ExtendedData":{"LatLonBox":{"east":107.6135266,"north":-6.91882,"south":-6.9251486,"west":107.6072314}},"Point":{"coordinates":[107.610379,-6.921986,0]},"ad
 dress":"Karanganyar, Bandung, 
Indonesia","id":"p2"},{"AddressDetails":{"Accuracy":4,"Country":{"AdministrativeArea":{"AdministrativeAreaName":"West
 Java","Locality":{"DependentLocality":{"DependentLocalityName":"Astana 
Anyar"},"LocalityName":"Bandung"}},"CountryName":"Indonesia","CountryNameCode":"ID"}},"ExtendedData":{"LatLonBox":{"east":107.621226,"north":-6.917412,"south":-6.958665,"west":107.600507}},"Point":{"coordinates":[107.609448,-6.9370843,0]},"address":"Astana
 Anyar, Bandung, 
Indonesia","id":"p3"},{"AddressDetails":{"Accuracy":4,"Country":{"AdministrativeArea":{"AdministrativeAreaName":"West
 
Java","Locality":{"LocalityName":"Bandung"}},"CountryName":"Indonesia","CountryNameCode":"ID"}},"ExtendedData":{"LatLonBox":{"east":107.738677,"north":-6.84052,"south":-6.967505,"west":107.560903}},"Point":{"coordinates":[107.606903,-6.91243,0]},"address":"Bandung,
 
Indonesia","id":"p4"},{"AddressDetails":{"Accuracy":2,"Country":{"AdministrativeArea":{"AdministrativeAreaName":"
 West 
Java"},"CountryName":"Indonesia","CountryNameCode":"ID"}},"ExtendedData":{"LatLonBox":{"east":108.8338797,"north":-5.913776,"south":-7.820934,"west":106.374775}},"Point":{"coordinates":[107.668887,-7.090911,0]},"address":"West
 Java, 
Indonesia","id":"p5"},{"AddressDetails":{"Accuracy":1,"Country":{"AddressLine":["Java"],"CountryName":"Indonesia","CountryNameCode":"ID"}},"ExtendedData":{"LatLonBox":{"east":114.601662,"north":-5.873757,"south":-8.780727,"west":105.20089}},"Point":{"coordinates":[110.7122465,-7.6145292,0]},"address":"Java,
 
Indonesia","id":"p6"},{"AddressDetails":{"Accuracy":1,"Country":{"CountryName":"Indonesia","CountryNameCode":"ID"}},"ExtendedData":{"LatLonBox":{"east":141.0291,"north":5.9044,"south":-11.00489,"west":95.0093}},"Point":{"coordinates":[113.921327,-0.789275,0]},"address":"Indonesia","id":"p7"},{"AddressDetails":{"Accuracy":0,"AddressLine":["Asia"]},"ExtendedData":{"LatLonBox":{"east":-168.3545,"north":81.669178,"south":-12.9403,"west":25.01
 
59}},"Point":{"coordinates":[100.6196553,34.047863,0]},"address":"Asia","id":"p8"}],"Status":{"code":200,"request":"geocode"},"name":"6°55'17.93\"S\r\n107°36'42.25\"E"}}}



Apparently #2 is taking more decoding process rather than #1
You can imagine the cache since I have 15 nodes displayed simultaneously on my 
dashboard.

Somehow google map only able to geocode for the first time (when there's no 
cache) and unable for the second time (with cache).

So yesterday I tried format #3 and BINGO, the node is displayed without making 
any geocoding (so there will be no cache) because #3 is showing exactly what 
google map needs to point.

That's why now my map loads faster then ever.




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=35546#35546

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to