Converting CLLocation to a human-readable place name string

In a text-based application I want to enable a simple geotagging feature. Is there a way to convert a CLLocation latitude-longitude information into an actual place name, like "New York, NY", "Vancouver, B.C., Canada", "Birmingham, England" etc.? It doesn't need to be terribly precise, if it can recognize all towns/cities of more than 100-200K people I will be happy. On the same subject, since I'm new to the whole geotagging/GPS thing (I'm developing on a Touch and have never used a GPS device), what are some other developers doing with regards to presenting location information in a human-readable format? Just knowing the longitude/lattitude seems rather uninspiring to me.
Thanks,
DonutMan

You can use Google Maps Reverse Geocoding service.
http://code.google.com/apis/maps/documentation/services.html#ReverseGeocoding
It should be easy to wrap these js functions into Objective-C with -stringByEvaluatingJavaScriptFromString:
I know there is also a pure OBJC Google API framework but I don't know if it includes this.

Similar Messages

  • Converting Time Difference to Human-Readable Time

    Hello everyone,
    I just posted a thread about an hour ago on how to get the difference between the current time and two tables. My results are as follows:
    Call Moddate Modtime Age
    Open     2009-04-09     13:47:08     2.57
    The age is this command:
    round((sysdate - to_date ( moddate | | modtime, 'YYYY-MM-DDHH24:MI:SS'))*1440, 2)
    Is there a way to convert the result (2.57) to a HH24:MI:SS format?

    Hi,
    Solomon Yakobson posted a solution in that other thread that does exactly that.
    with t as (
               select '2009-04-09' ModDate,'13:48:30'  ModTime from dual
    select  numtodsinterval(sysdate - to_date(ModDate || ' ' ||  ModTime,'yyyy-mm-dd hh24:mi:ss'),'day') duration
      from  tIf it produces more output than you'll ever need, use SUBSTR (or some similar function) to get only the part you're interested in.

  • How to convert termianl log to human readable log in ADF mobile

    When I debug my ADF mobile application, I write command tail -f /var/log/system.log in terminal. And I get following output.
    May 6 11:32:42 evosys-iMacs-iMac.local manager[507]: Obj-C [CH-1, State=created ableToSend=Yes]: Message arrived - VMMessage [
         type: Plain[0x00]
         prinorty: 2
         channelID: -1
         messageID: 3
         length: 137
         body: {41, 44, 46, 4D, 53, 47, 20, 31, 30, 30, 30, 30, 20, 20, 20, 35, 31, 31, 20, 20, 20, 35, 31, 31, 20, 20, 20, 20, 20, 30, 20, 20, 20, 31, 30, 31, 7B, 22, 72, 65, 73, 75, 6C, 74, 22, 3A, 5B, 5D, 2C, 22, 64, 61, 74, 61, 43, 68, 61, 6E, 67, 65, 45, 76, 65, 6E, 74, 22, 3A, 7B, 22, 76, 61, 72, 69, 61, 62, 6C, 65, 43, 68, 61, 6E, 67, 65, 73, 22, 3A, 7B, 22, 76, 69, 65, 77, 53, 63, 6F, 70, 65, 22, 3A, 7B, 22, 2E, 6E, 75, 6C, 6C, 22, 3A, 74, 72, 75, 65, 7D, 7D, 2C, 22, 70, 72, 6F, 76, 69, 64, 65, 72, 43, 68, 61, 6E, 67, 65, 73, 22, 3A, 7B, 7D, 7D, 7D}
    But I have no idea that how to convert body into string,
    Thanks in Advance.

    Dennis Knutson wrote:
    Are you refering to the front panel logging option? The actual binary format is going to depend on what controls and indicators you have on the front panel and their data types. There is an example of using the file i/o functions to read one of these files in chapter 14 of the user manual. The problem you'll have if you write a program to read a log file is that every time you add or delete a control/indicator, you'll have to rewrite your program and then you'll be unable to read older log files. You'd be better off writing your own log routines. Then you would control the binary format. There are shipping examples that you can look at for fbinary file storage.
    Yes, I am referring the front panel logging option and I will read the maual first. Thank you very much for your help.

  • Unix timestamp conversion to human readable representation ...

    Hi,
    I map unix timestamps from MaxDB to the controller context of Web Dynpro and display the results in a table. Is there a smart way to convert the timestamps to human readable date and time? Maybe some way to manipulate the table values with a function before they are written ..?
    For now, I create a new node in the context and manually set each value with the according date/time representation ... but thats pretty cumbersome.
    Thank you very much for your help!
    Cheers,
    boris

    Hi Boris,
    Check http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
    Date currentTime_1 = new Date(longUnixTimestamp);
    String dateString = formatter.format(currentTime_1);
    I would suggest you to create a calculated attribute under the same node as initial timestamp value and return a result of SimpleDateFormat.format().
    Best regards, Maksim Rashchynski.

  • Convert from epoch timestamp to human readable date

    Hi everybody,
         I want to retrieve a human readable date from an fpga target of a sbRIO9636 ,so what is the function which can convert an epoch timestamp to a human readable date ? 
    (Noting that i need to retrieve the second,minute,hour,day,month,year... from the fpga target of this device)
    Thanks

    I have a program which retrieve the current time of windows (with the Get Date/Time in Seconds and Seconds to Date/time functions) and calculate the julian day parameter by using the second,minute,hour,day,month and year wich are displayed on the elements of the Unbundle By Name function (connected in the output of Seconds to Date/time function).
    This program works within windows and real time but I can't run it in the chassis of the sbRIO (errors displayed that these functions above aren't supported in the current target)
    Can i use another method to solve this problem.
    (See the front panel of this program in the following attached file)
    Attachments:
    julian day.PNG ‏110 KB

  • NW RFC SDK: No more human-readable RFC error messages?

    I'm converting my program from the classic RFC SDK to the NetWeaver one.
    Apparently, the RFC_ERROR_INFO.message value is no longer filled with the proper human-readable error message as it used to be.
    Eaxmple: trying to create a function description for a non-existant function
    Classic SDK: "Function module "Z_MYFUNC" not found."
    NetWeaver SDK: "ID:FL Type:E Number:046 Z_MYFUNC"
    I don't see how to get the old message back. Can anyone help? Thanks!

    I am using nwrfcsdk in c directly, I have encountered some other issues, you may
    check the nwrfcsdk init release blog by Ulrich via
    /people/ulrich.schmidt/blog/2007/05/10/sap-netweaver-rfc-sdk
    May be the patch 1 have solved this issue already.
    sapnote 1056472 SAP NW RFC SDK 7.10 -- Patch level 1

  • Transform XML-String to human readable XML-File

    I need to transform a XML-String as coming from a simple transformation into a human readable XML-File. That means with linebreaks and logical indenting, each line not longer than n charactors.
    Example:
    <one><two>text</two><three><four>text</four></three></one>
    into
    <one>
      <two>text</two>
      <three>
        <four>text</four>
      </three>
    </one>

    I wrote a method that will do this, but the method can not handle all kinds of XML-strings, but it works with most simple XML-Strings:
    METHOD xml_str2table.
    *** Importing
    **    I_XMLSTRING type csequence
    *** Returning
    ***   e_tab_XMLtab type table of string.        
      DATA l_cnt_length TYPE i.
      l_cnt_length = STRLEN( i_xmlstring ).
      DATA l_cnt_index TYPE i.
      DATA l_xmlline TYPE string.
      DATA l_oldchar TYPE c.
      DATA l_char TYPE c.
      DATA l_nextchar TYPE c.
      DATA l_indent TYPE i.
      DO l_cnt_length TIMES.
        l_cnt_index = sy-index - 1.
        l_char = i_xmlstring+l_cnt_index(1).
        IF sy-index < l_cnt_length.
          l_nextchar = i_xmlstring+sy-index(1).
        ENDIF.
        IF  l_char <> cl_abap_char_utilities=>newline.
          IF ( l_char = '<' AND l_nextchar = '/' ) OR
             ( l_char = '/' AND l_nextchar = '>' ).
            l_indent = l_indent - 1.
            IF l_indent < 0.
              l_indent = 0.
            ENDIF.
          ENDIF.
          IF l_char = '<' AND l_oldchar = '>'.
            APPEND l_xmlline TO e_tab_xmltab.
    *      write: / l_xmlline.
            CLEAR l_xmlline.
            DO l_indent TIMES.
              CONCATENATE space space l_xmlline INTO l_xmlline SEPARATED BY space.
            ENDDO.
          ENDIF.
          if l_char <> space.
            CONCATENATE l_xmlline l_char INTO l_xmlline.
          else.
            CONCATENATE l_xmlline l_char INTO l_xmlline SEPARATED BY space.
          endif.
          IF l_char = '<' AND l_nextchar <> '/'.
            l_indent = l_indent + 1.
          ENDIF.
        ELSE.
          l_indent = 0.
          APPEND l_xmlline TO e_tab_xmltab.
    *    write: / l_xmlline.
          CLEAR l_xmlline.
        ENDIF.
        l_oldchar = l_char.
      ENDDO.
      APPEND l_xmlline TO e_tab_xmltab.
    *write: / l_xmlline.
    ENDMETHOD.
    The second Method does the same not with an string, but with an X-String:
    METHOD xml_xstr2table.
    *** Importing
    **    I_XMLSTRING type xsequence
    *** Returning
    ***   e_tab_XMLtab type table of string.     
      DATA l_tmp_string TYPE string.
      DATA conv TYPE REF TO cl_abap_conv_in_ce.
      conv = cl_abap_conv_in_ce=>create(
                encoding = 'UTF-8'
                endian = 'L' ).
      conv->convert(
        EXPORTING input = i_xmlstring
        IMPORTING data = l_tmp_string ).
      e_tab_xmltab = xml_str2table( l_tmp_string ).
    ENDMETHOD.

  • 07 excel hyperlinks (place names) not captured in Acrobat 9

    Hi, I have an excel workbook with about 30 different worksheets that I developed in Excel 07. The different worksheets hyperlink to each other using place names as guides.
    In excel, it works as expected however when I create the PDF (acrobat 9 pro extended) only some of the links work. I do not know why random links (maybe half of them) are not functional. I have played around for an hour or so recreating links however it hasn't worked.
    I am using Windows XP SP2.
    Your assistance is most appreciated.
    Cheers, Matt.

    Dear Matthew,
    Re. the problem of converting a MS Excel workbook with hyperlinks to PDF:
    The "Excel Problem" is with Acrobat already for sevearl years, living through various product versions of Acrobat. The input from Adobe (technotes) has so far been partial, providing partial hints 'try this setting' but without uequivocal guidance on the issue. A quick search on the internet learns that everybody has trouble with the issue and half the world uses Excel. Despite all the questions on forums, Adobe technotes etc, for years in a row, it still does not work and no clear and unequivocal guide is available from Acrobat. We personally think that there is a structural problem in the code (at Adobe's side).
    we have reached the conclusion that currently, it is simply not possible to use Acrobat 8.## (we use the "pro' version) to robustly convert an Excel file with hyperlinks, into a professional file in the PDF format.
    Corporate ICT Dept

  • Human readable decision tree?

    Hello,
    I have a scenario where its necessary to stroe a human readable form of the rules processing together with the result. For example when someone phones a call centre, they are not just told that based on their circumstances, the answer is 42, but also why. 
    I deally I would like to call a service within my process and receive back an answer, as well as a document (pdf? or something that could be converted to it...). Does this exist? (I suppose there must be a trace facility for developers...)
    Armando.

    Hi Armando,
       What we have at this point (with Ehp1 of 7.0 and 7.1) is a trace feature which provides an explanation of the decision process. The feature is integrated in the UI. There are however certain limitations regards the performance (you cannot use the code generation mode when in the trace mode of execution). We are making certain improvements and what you will see in future releases (Ehp2) will likely include significant capabilities in this area.
    regards
    Sudhir

  • Generate human-readable metadata out of a mapping?

    Hi, has anyone figured out a way to generate human-readable metadata out of a mapping? For instance, one of our developers would like to have a legible "lineage" dump that would show each target column, and all the input columns and/or transformations required to get from the source to there.
    If so, we'd sure like a chance to talk it over with you!
    Thanks,
    Scott

    Hi Scott,
    Sounds like an enhancement request for the Metadata dependency manager. You can do this for tables already. But you still have to open all mappings from the manager to find out where the data for a particular column is coming from. Not easy, but it can be done if the problem is urgent.
    Another possibility would be to use tcl/OMBPlus and start from OMBRETRIEVE MAPPING 'SOME NAME' GET PROPERTIES (TARGET_LOAD_ORDER)
    This will give you a list of tables that are the target(s) for the mapping. From there you can retrieve the connections of the individual columns to their predecessor (operator or table) and repeat that all the way back to the beginning of the mapping.
    This would be for an individual mapping. You then have to figure out how the mappings are related. And the dependency manager shows that can be done.
    I personally don't think I will start developing this right now, though, like you, I would be very interested in the result.
    Kind regards,
    Eric.

  • UPC-A barcode without the human readable numbers underneath

    Hello ,
    I have a lifecycle designer 8.1 on windows 7 machine, my requirement is to place the UPC-A barcode without the human readable number underneath the bars and with the interspacing between the bars as 0.020.
    Is the above requirement feasible and possible, please provide your inputs .
    Thanks in advance.
    Pooja

    Hi Pooja, I've done a barcode project before so here's what I know about this topic.
    First about the human readable text. This is mandatory according to the GS1 General Specification, so most UPC-A barcode generator tend to automatically add the text to create valid barcode image. If you really need to get rid of it, you might need to process the barcode image further after it have been created. I used this UPC-A creator, if you like you can check it out.
    As for the interspacing between the bars, each symbol character consists of two bars and two spaces, each of 1, 2, 3 or 4 modules in width. In other words, find any UPC-A barcode, and you will see it's composed of bars and spaces with four different widths. Most barcode generator can allow you to adjust module width, i.e. the narrowest bar / space. So you can't set each space to 0.020, as they are not equal to each other in the beginning.
    Hope this will help. If you there's anything more you need to know, I'd be glad to help.
    Regards,
    Catherine

  • UPC-A Barcode without human readable numbers underneath

    Hello ,
    I have a lifecycle designer 8.1 on windows 7 machine, my requirement is to place the UPC-A barcode without the human readable number underneath the bars and with the interspacing between the bars as 0.020.
    Is the above requirement feasible and possible, please provide your inputs .
    Thanks in advance.
    Pooja

    Hi Pooja, I've done a barcode project before so here's what I know about this topic.
    First about the human readable text. This is mandatory according to the GS1 General Specification, so most UPC-A barcode generator tend to automatically add the text to create valid barcode image. If you really need to get rid of it, you might need to process the barcode image further after it have been created. I used this UPC-A creator, if you like you can check it out.
    As for the interspacing between the bars, each symbol character consists of two bars and two spaces, each of 1, 2, 3 or 4 modules in width. In other words, find any UPC-A barcode, and you will see it's composed of bars and spaces with four different widths. Most barcode generator can allow you to adjust module width, i.e. the narrowest bar / space. So you can't set each space to 0.020, as they are not equal to each other in the beginning.
    Hope this will help. If you there's anything more you need to know, I'd be glad to help.
    Regards,
    Catherine

  • Place names in elements 12

    How can I set my own place names/categories ?  Can I turn off the map option ?

    No. You cannot rename a location marked on Map. The name that appears will be the same as it appears on map.

  • How do I add place names to events in iPhoto 11

    How do I add place names to events iPhoto 11 version 9.2.1, I can do a single picture at a time but when you have a 100 or so it's going to get tedius.
    I have found messages  via google that tell me how to do it but it dos'nt work.
    I select the event I want to locate. then I  click "cmd i" to get the info screen up. Then at the bottom of the screen is a picture of the world and a box next to it where I think you should type in your location, but that just takes me to a map of the USA and I can't do anything.
    Help please, what am I doing wrong.

    Same problem here. Cannot understand why it is soooo difficult...

  • I want to edit the places name (with the little house icon)

    I'm relatively new to Mac. This is a computer shared by a few people and I didn't want to plaster my name all over it. the places name for example is IanComputer but i'd like it Ian + Lisa.
    Can this be done?
    tnx in advance

    The simplest thing of all would be to create new accounts for the other users, with whatever names they want. Then they would only be able to log into their own account and wouldn't be able to see anything that's in your account. You could leave your own account just as it is.
    Of course you shouldn't tell other users what your username and password are

Maybe you are looking for

  • Restricted automatic creation of PO in sales order

    Hi Experts When we create a sales order (VA01), we had customized the automatic creation of a Production order (CO01); but our client is asking us to limit this automatic creation to a certain characteristics of the material. For example, we have to

  • Runtime error:  DBIF_REPO_SQL_ERROR

    Hi All, I am getting the above mentioned error along with the error text : Database error text........: "ORA-01654: unable to extend index SAPR3****     by 8192 in tablespace PSAP****" What exactly does this error indicate? how can it be resolved? Ma

  • REPORTS-G/LVEN-CUST

    senior sirs,    HOW can take the generl ledger reports, and vendor reports, and customer reports, HAVE ANY configuration are use in T-codes, just let me know the information about.

  • Sales order -va02

    Dear Consultant, Tcode - VA02 ---give some order no ..then enter button... again enter button...it will show u:: ITEM OVERVIEW- next select any line item next click PRINT PREVIEW button -for my business it showing ORDER CONFIRMATION-Then click BACK b

  • Locking and Unlocking Transactions

    hi, We have locked SM06 transaction in SM01 and we dont know the time Please let me know if there is way to find out the date and time of when SE06 is locked in SM01 Please guide