Loading Time GeoChart with JSON

171 views
Skip to first unread message

Manuel

unread,
Dec 9, 2014, 8:12:10 AM12/9/14
to google-visua...@googlegroups.com
Dear all,

I'm currently testing a geochart populated with JSON. But it loads quite slowly one country after another.
You can find the example here: http://hauspreisindex.esy.es/
Perhaps someone knows the reason for the long loading time?

I'm looking forward to your feedback.

Best,
Manuel

Sergey Grabkovsky

unread,
Dec 9, 2014, 10:17:37 AM12/9/14
to google-visua...@googlegroups.com
Hi Manuel,

The issue here is that you're using German names for your countries, which aren't immediately recognized by the GeoChart, so it falls back to geocoding each name via Google Maps. This can get very slow, since the geocoder starts throttling you after 10 requests.

In order to speed it up, you could use the ISO 3166-1 country codes, which the GeoChart knows about inherently, along with a second string column for "nice names". Alternatively, you could use english names for the countries, which the GeoChart also knows about.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Privat

unread,
Dec 12, 2014, 1:15:10 PM12/12/14
to google-visua...@googlegroups.com
Changed it and it works fine. Thank you very much



You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/FxfsjNh6OgU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages