iphone - Translate String in a language (Enlgish) to other language (phone's current language) using buil-in API -
i calling google maps app show directions between "current location" , location. using following code,
nsstring* url = [nsstring stringwithformat: @"http://maps.google.com/maps?saddr=%@&daddr=%f,%f", @"current\%20location", destcoordinate.latitude, destcoordinate.longitude]; [[uiapplication sharedapplication] openurl:[nsurl urlwithstring:url]];
note passing @"current\%20location" saddr. works fine if phones language set english. @pazustep, here, in post regarding finding current location, suggested wont work if language different. , obviously, solve issue, have use core location find current location , pass latitude , longitude google maps app. expecting other way solve issue without modifying implementation logic.
- is there built-in api available translate string "current location" , or string, current phone language?
- if not, there way tell google maps app translate string current language?
why not use core location latitude , longitude of current location , put in saddr?
Comments
Post a Comment