Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google maps with Mysql in Java EE framework

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.

like image 602
Yogesh Pandey Avatar asked Nov 13 '22 01:11

Yogesh Pandey


1 Answers

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.

like image 127
Saurabh Avatar answered Dec 20 '22 14:12

Saurabh