
jeudi juillet 06, 2006
Mashup end result I hacked a mashup for the JavaDay in Versailles, France last week using Java Studio Creator's AJAX mapping component (based on Google Maps).
It uses the registered people database, batch-processing each address through Google Geocoding to populate a latitude/longitude table. The batch approach is due to the hundreds of addresses I have to process and to Google having a (fair) one request per 1.75 seconds per Google key restriction. This geo service can return JSON-formatted data which is what I chose. Of course, I had to do a bit of address cleaning and resubmitting some alternate addresses (adding "FRANCE", removing street name, etc.). I managed to get a 63% ratio of all registered people and 85% of those who actually gave an address (most of the ones that failed had spelling errors).
Here's the end result: (I've pulled down the google map from this page because it was slowing down the entire blog. New home is here. I guess this Google Map JavaScript code has some scalability issues past several hundreds of markers. Maybe time to look at the Aerith source code or to the new SwingLabs Mapping component ...).
JavaDay 2006
Versailles
(Use the "Hybrid" view)
I've only kept the first two letters in first and last names to protect privacy. The speakers have full information. Make sure you fully zoom out to see all participants.
I need to do some code cleaning before I share Geo-coding invocation, JSON parsing, JPA in Java SE, more Web Service invocation, Google Map markers construction, etc...
( juil. 06 2006, 01:13:17 PM CEST )
Permalink
|
Posted by Julius on juillet 07, 2006 at 09:23 AM CEST #
Posted by Alexis MP on juillet 07, 2006 at 12:03 PM CEST #
Posted by François on juillet 10, 2006 at 12:29 PM CEST #
La quasi-totalité du code est maintenant décrite ici.
Posted by Alexis MP on juillet 12, 2006 at 10:35 PM CEST #
Posted by Thomas Landsprug on août 01, 2006 at 12:42 PM CEST #