How do I call the Google Map API in PHP? and display the points of latitude and longitude in the database on the map

Source: Internet
Author: User
Title. Better write the details, thank you!


Reply to discussion (solution)

The 23.1150614,113.4082905 is the latitude and longitude of the position.

 
  
 
  
 
  Google Maps API test    



This key is going to apply to Google.
key=abqiaaaahdyarwhqc8qoi6hi4fw2abs7hg4ulivph-zy5zav91xflkvwfhrt3brs_8ce9kmwp7uxsengxsyf3a

Local Test without key

The 23.1150614,113.4082905 is the latitude and longitude of the position.
Xml/html code?1234567891011121314151617181920212223242526272829303132333435363738394041424344
Thank you! If there is a table in the data database, there are two columns: Lat and LNG how can I show the latitude and longitude of the data table to the map?

In fact, the best way is to read the data from the database, write an external KML file, and then use JS loading.
This thing is not few words said clear, code or something, it is best to study their own, the key is to really understand.
Reference Https://developers.google.com/maps/documentation/javascript/layers

In fact, the best way is to read the data from the database, write an external KML file, and then use JS loading.
This thing is not few words said clear, code or something, it is best to study their own, the key is to really understand.
Reference Https://developers.google.com/maps/documentation/javascript/layers

Thank you so much! Just click on the URL you provided to see the KML, a little vague about its concept. Are you sure you can write a kml for the latitude and longitude information in the database, and then use JS to load the line? If it works, I'll do a good research! Thank you!

Demo:http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/ggeoxml_loader.html
Kml:http://kml.lover.googlepages.com/my-vacation-photos.kml

The source of their own research to go.

is indeed more complex. It has not been solved by now! Find a reference http://www.ibm.com/developerworks/cn/xml/x-geomap1/index.html

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.