Hi,
Is there a way to return LatLng, Google Maps' format for points, from a mySQL database? I'm using Flex 3 and MySQL with Google Maps.
Currently, I select latitudes and longitudes from my mySQL table and then iterate over them in Flex in order to make the LatLng for Google Maps.
public function latLngCreator():void {
myLatLngArray = [];
var i:uint;
var arrayCollectionLength:int = myData.length;
for (i=0; i < arrayCollectionLength; i++) {
myLatLng = new LatLng(myData[i].latitude, myData[i].longitude);
myLatLngArray.push(myLatLng);
}
Is there a way to skip the above step and select the latitudes and longitudes from the table and create the LatLng in PHP? This way I wouldn't have to iterate over the result and hopefully it would be faster.
Any suggestions?
Thank you.
-Laxmidi