Although I've been writing code for more years than I care to admit, I am a virtual newbie to Google's Mapping API. I'm currently developing an iPhone/iPad application that uses a Google map to select the location of their birthplace. On initialization, a world map is presented along with a text box for input of city, state, country, etc... whatever is needed to identify the location. This data then uses the JavaScript API v3 to convert the data into map coordinates zooming the map to appropriately identify the results.
So far, so good. The LatLng object works great for displaying the map, etc. Once the map is presented, however, I then need the actual latitude and longitude values for the application itself. It took me considerable time dealing with JS errors, before I realized that LatLng is NOT actually a string, but an object. (Yeah... I know... I should have read closer.) I have done considerable searching, but can find no solution for converting the "object" into a "string", so I can use the values in my application. While the LatLng object works quite well for Google's own maps, it certainly diminishes it's usefulness for anything else.
I can't imagine that I'm the only one facing this dilemma, but I neither can I find a published solution. Any assistance would be greatly appreciated.
Thanks,
Jack