Google Maps Save Polygon and points in MySQL using PHP

后端 未结 3 1134
遥遥无期
遥遥无期 2021-01-02 07:57

Right now I have an application that allows users to draw a polygon on google maps. I need to save this polygon using PHP and MySQL but I\'m unsure of best practices.

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-02 08:36

    You can also use : google.maps.geometry.encoding to encode/compress paths

    http://code.google.com/intl/fr/apis/maps/documentation/utilities/polylinealgorithm.html

    I once used this to save in database thousands of directions and it is quite convenient.

提交回复
热议问题