I am working on a web application with Java EE that takes the address of people from a MySql database and shows their location on Google maps.
Currently I am doing it manually as I don't know how to do integration of Google maps in JSP. Kindly give me some sort of direction to do so with Java.
Firstly, fetch list of all addresses from the database, then using Google geocoder service, fetch the latitude-longitude of those addresses. Here is the sample code (http://code.google.com/p/gmaps-samples/source/browse/trunk/geocoder/java/GeocodingSample.java?r=2476). Then you can create Google Map Marker on the map..Here is the sample code http://www.paulwest.co.uk/article.php/using-google-maps-api-to-mark-your-location-and-address
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With