Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 948969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:19:44+00:00 2026-05-15T23:19:44+00:00

Is there a way to return LatLng, Google Maps’ format for points, from a

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:19:45+00:00Added an answer on May 15, 2026 at 11:19 pm

    I don’t think there is a way for this to happen. I am assuming you are using google maps v3. google.maps.LatLng does not accept deserialized JS objects, it only accepts 2 parameters as (lat, lng).

    Furthermore, moving from the back-end to the front-end the data has to be serialized, and then deserialized. These actions can be just as performance intensive.

    What you don’t want to do, is write javascript/actionscript from PHP to create these objects. I have seen this happen, and the delivery was too large to handle the file and compiled twice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a preferred way to return multiple values from a C++ function? For
Is there a way to get boost.format to use and return wide (Unicode) character
Instead of returning a common string, is there a way to return classic objects?
Is there an easy way to return data to web service clients in JSON
Is there a way to have a function return a editable reference to some
Testing: return request.getCookies() == null; is not an appropriate way test. Is there another
Is there any way to check whether a file is locked without using a
Is there way in next piece of code to only get the first record?
is there way thats i can preselect an item when the page loads or
Is there a way to enforce constraint checking in MSSQL only when inserting new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.