Retrieve the latitude and longitude data from the local database and search it in the google map

Go To StackoverFlow.com

0

Just wandering, will it be possible for me to using the existing latitude and longitude data from the local database and search it in the google map to display the location on the google map?

Example: I have a database that saved all the latitude and longitude data. I wrote a system with php to retrieve the latitude and longitude data from the database then search it in the google map. Will it be possible?

Any idea where can I get the tutorial or example code about this case?

2012-04-04 04:00
by Jin Yong


3

Check these links, These will definitely solve your problem.

Google Maps JS API v3 - Simple Multiple Marker Example

Google Maps JS API v3 - Simple Multiple Marker Example with Custom Markers

EDIT::

You can use openstreet map. I think it's free. Check these links for openstreetmap:

http://wiki.openstreetmap.org/wiki/OpenLayers_Marker_Example

http://wiki.openstreetmap.org/wiki/Marker_API

2012-04-04 04:22
by srbhbarot
I'm looking for free or open source code. But Google Maps JS API need to pay : - Jin Yong 2012-04-04 04:26
It's free to use. who says you need to pay - subroutines 2012-04-04 04:30
I think for some limited uses it is free. You can read conditions for using google maps api - srbhbarot 2012-04-04 04:31
check my edited answer for alternative to google map - srbhbarot 2012-04-04 04:37


1

Not sure what you are asking but yes you can use Long/Lat data to show a location. There are several ways to use google maps the most common is using the javascript api:

https://developers.google.com/maps/documentation/javascript/tutorial#HelloWorld

You can also use the static image method which is a bit more complicated:

https://developers.google.com/maps/documentation/imageapis/

If you don't have the Long/Lat data you can always use google maps to do geocoding to get the point:

https://developers.google.com/maps/documentation/javascript/geocoding

2012-04-04 04:21
by David Nguyen
Ads