Reverse geocoding

I would like to get an address close to the position group. I use Locator.reverseGeocode, coming to me [historical], but this table still has that one, so I just get a job and I would like to get some of them. How can I accomplish this?

Hello

A quick suggestion (that you already have) would be to write a loop that slightly changes the coordinates on each passage and recalculates the reverse geocoding for the new coordinates.

In addition, please note that the net.rim.device.api.lbs.locator class has been deprecated in 7.0 API and replaced ReverseGeocoder and net.rim.device.api.lbs.maps.server.Geocoder classes.

I hope this helps.

See you soon,.

netsport

Tags: BlackBerry Developers

Similar Questions

  • 'Require the error' try to call reverse geocoding function of geo_search.h


    I am trying to create an additional function in an existing extension using WebWorks 1.0.4.11.

    The function is geo_search_reverse_geocode in geo_search.h

    For now I'm just using the code example in the documentation on this function.

    http://developer.BlackBerry.com/native/reference/core/com.QNX.doc.Geolocation.lib_ref/topic/geo_sear...

    So therefore, my code looks like this.

    /**
     * Test Function to performs a reverse geocode lookup.
     */
    string TExtn::performReverseGeocode(const char* handle) {
    
        string result = "";
    
         geo_search_handle_t handle_t;
         geo_search_error_t error = geo_search_open( &handle_t );
         if ( error == GEO_SEARCH_OK ) {
           geo_search_reply_t reply_t;
    
           // for now, use the location in the example.
           double lat = 39.8017;
           double lon = -89.6436;
    
           error = geo_search_reverse_geocode(&handle_t,
                                              &reply_t,
                                              lat,
                                              lon,
                                              GEO_SEARCH_BOUNDARY_CITY);
           if ( error == GEO_SEARCH_OK ) {
    
                 // do something with the results in the search reply
                 result = decode_reply( &reply_t );
             geo_search_free_reply( &reply_t );
    
           } else {
               result = "unknown";
           }
           geo_search_close( &handle_t );
         }
    
         return result;
    }
    

    Before adding this feature, the extension causes no problems in my webworks app.

    Now that I've added the function call, I get this message that appears when running my application webworks.

     

    Need error cannot find /usr/lib/webplatforms/plugins/jnext/libTJNext.so library cannot be found

     

    * edit: libTJNext.so is the name of the shared object containing my extension.

    I use the same build scripts, and if I comment my changes to my hpp/CPP files, extension begins to work again (but without the support of geocoding).

    I hope that the message itself is a herring-saur, as the so is included in the file of the bar (I checked), so I expect to be installed when I install the application.

    What I am doing wrong?

    Yes, the message is a red herring. As a general rule, if the system cannot load a .so due to a connection problem, it shows the error. Have you noticed on the documentation of the API that it uses this library: libgeo_search?

    This library must be added to your project in order to to use. Without it the binding will fail and you will get this message.

    The process of adding that is documented here: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10-Cordova/Template#including-li...

    This section of the manual applies to extensions times WebWorks 1.0 and 2.0 WebWorks, although a large part of the rest of this file applies only to the WebWorks 2.0.

  • Reverse geocoding does not

     

    I use reverse geocoding for location name. I have run the following query:

    http://maps.googleapis.com/maps/geo?json&ll=-42.307546,-101.048116&sensor=false
    

    And it results in the following output:

    {
      "name": "-42.307546,-101.048116",
      "Status": {
        "code": 602,
        "request": "geocode"
      }
    }
    

    She does not need to get the name of the place for me. How can I find the name of the location? Help, please.

    Thank you very much.

    As far as I know, the Locator class is deprecated.

    And I found the solution to my problem. I was using the wrong coordinates. Now, when I corrected my details, I got the right address.

    Thanks for help.

  • LR4: Save data reverse geocoded on DNG

    With the introduction of the add-on cards that I try to use the same way use other programs (e.g., Geosetter).

    Lightroom can get reverse geocoded location information, i.e., city, State, country via the Google API. This information is shown in light gray once recovered:

    location.PNG

    The problem is: this information is not saved with the DNG format. I can activate "export reverse geocoding suggestions each time that the address fields are empty" which would export these things with JPEG files, but I want that information saved in the DNG - additional to the LR database.

    How can I achieve this or is this a feature request?

    You must click on the respective field, for example 'city' label, to accept the value of the field - it seems to be designed as a suggestion which must be confirmed by the user.

  • Tests of reverse geocoding.

    Hi I'm new to the Blackberry development. I'm trying to run a sample of Locator.reverseGeocode () using the simulator of 9300. I gave a few of simulation--> GPS location values. But when I run the appication of the reverseGeocode() thread does not stop. Am I missing something? I don't know if I need MDS Simulator for running this example Locator.reverseGeocode (). (I have not many MDS Simulator.)

    Thank you

    UserBB33

    As far as I know,

    Geocoding in will of Blackberry sent the data to the server to get the address of the place...

    So he needs MSD Simulator... ^^

  • reverse geocode

    I was able to tie a Garmin GPX file in Lightroom using the card module.  The city, State and country appear, but there is no similar information to the video of Terry White which also seems to show the in the card module.  However, when I go in the library Module, the information disappears.  A similar result occurs when you use one of my cameras have a built-in GPS.

    Any suggestions on how to fix this?

    I use the latest version of Lightroom CC 2015.

    In the library, make sure that you can see the metadata Panel, and the tagset location is selected:

    The news of location automatically added by address search of LR (secondary, city, State/Province, country, ISO Code) will appear in a gray font which can be difficult to read on the non calibrated screens.

  • Is the integration of the Bing maps for free reverse geocoding Service?

    Someone at - he experiences with an account with the Bing maps portal - which is recommended by Adobe - and knows, if the use is free? I want to deliver a regional content in a folio (the article) with the professional edition, based on the GPS.

    Thank you very much!

    Here's the Bing license options: http://www.microsoft.com/maps/Licensing/licensing.aspx.

    Neil

  • Example of Code that shows the geocoding reverse to a mailing address?

    Can someone well want to show an example or two so that I can have for clarification. I need to have a developed application that can get the current GPS position and reverse geocode the address.  I googled cela and have not been able to find a solution.

    Any help in this matter would be greatly appreciated

    Thank you

    I have a webwork extension that runs this code

    Historic landmark [] = Locator.reverseGeocode (address, Locator.ADDRESS);
    {If (landmark! = null & landmark.length > 0 & {landmark [0]! = null})}
    AddressInfo info = landmark [0] .getAddressInfo ();

    info.getField (AddressInfo.STREET)
    }

    But I think you coud use google gears on BB5 and BB6 on HTML5 Geolocation.

  • Geocoding options reverse missing under catalog settings in LR6

    I followed along in videos for Lightroom 6 and when I got the videos on the map they showed me that I could go in "the catalog settings" then under the tab "metadata" I should see reverse geocoding and place controls on each of the boxes. When I followed the instructions and went under the catalog settings and metadata tab there is no setting of available reverse geocoding. I also looked under 'preferences' without result, I would be grateful with anyone on this issue and can be reached at the [email protected] thank you

    Hi michaelb

    Reverse geocoding has been renamed address search

    Reference: What's new in Lightroom CC / 6.0? Lightroom Queen

    Kind regards

    Mohit

  • How to convert an address using geocoding Lat/Lon?

    I tried Googling, cela and have not found an answer. All I found was the following:

    http://mobijournal.com/retrieve-an-address-by-using-reverse-geocoding-in-BlackBerry/

    However, this does not widgets. Any help would be greatly appreciated.

    Gears geolocation service (available on OS 5.0) came with its own geolocation-reverse service (data came through Google), but as Gears has been deprecated this is no longer available on BlackBerry 6.

    There are a variety of web-service-powered services that offer different types of reverse-geocoding options.  A quick search on Google should allow you to find some that meet your needs.

    For example, Lombard Street (San Francisco, CA):

    http://ws.GeoNames.org/findNearestIntersectionOSM?LAT=37.802087&LNG=-122.418787

    Someone would like to recommend a preferred service that they have had success in the past?

  • How to convert latitude and longitude bb10 postal code?

    Hi, I want to know how to get the zip code of North latitude and longitudein BB10. I had the latitude, longitude and now I need to convert it to a zip code.

    I tried under document bb10 code

    /Reverse GeoCoding
    QStringList serviceProviders =
            QGeoServiceProvider::availableServiceProviders();
    if (serviceProviders.size()) {
        QGeoServiceProvider *serviceProvider = new QGeoServiceProvider(            serviceProviders.at(0));
        QGeoSearchManager *searchManager = serviceProvider->searchManager();
        //searchManager->setProperty("boundary", "city");    reply = searchManager->reverseGeocode(QGeoCoordinate(lat,long));
    
        bool finished_connected = QObject::connect(reply, SIGNAL(finished()),
                this, SLOT(readReverseGeocode()));
    
        bool error_connected = QObject::connect(reply,            SIGNAL(error(QGeoSearchReply::Error, QString)), this,            SLOT(reverseGeocodeError(QGeoSearchReply::Error, QString)));
    
    //Reverse GeoLocation
    void LocationHandler::readReverseGeocode() {
    QList LocDetList = reply->places();
    QGeoPlace locDe = LocDetList.at(0);qDebug() << "adr --> " << locDe.address().state();qDebug()<<"code"<deleteLater();
    }
    
    `void LocationHandler::reverseGeocodeError(QGeoSearchReply::Error error,
        QString errorString) {qDebug() << "( Geo::reverseGeocodeError ) " << errorString;reply->deleteLater();
    }
    
    I am getting below output
    
    adr "" code "" 
    
    I am not getting the values for code .What is the problem
    

    This code works for me, you can set a lower accuracy in meters (better accuracy) to ensure that you get a good Postal Code. My guess is (precision< 100)="" should="" be="">

    void Magic::positionUpdated(const QGeoPositionInfo & pos)
    {
        qDebug() << "positionUpdated()";
    
        // Get a GPS fix with an accuracy of less than 2000 meters and save the coordinates for further use
        qDebug() << pos.coordinate().latitude() << pos.coordinate().longitude();
        double accuracy = pos.attribute(QGeoPositionInfo::HorizontalAccuracy);
        qDebug() << accuracy;
        if (accuracy < 2000) {
            double lat = pos.coordinate().latitude();
            double lon = pos.coordinate().longitude();
            source->stopUpdates();
            if (!saved) {
    // This saved bool is needed because this slot gets called multiple time even after source->stopUpdates() is called. Initialize it to false in your constructor
                saved = true;
    
                // Initialize QGeoSearchManager
                QGeoSearchManager* searchManager;
                QGeoServiceProvider* serviceProvider;
                QStringList serviceProviders = QtMobilitySubset::QGeoServiceProvider::availableServiceProviders();
                if ( serviceProviders.size() ) {
                    serviceProvider = new QtMobilitySubset::QGeoServiceProvider(serviceProviders.at(0));
                    searchManager = serviceProvider->searchManager();
                }
    
                // create GeoCoordinate from latitude and longitude
                QtMobilitySubset::QGeoCoordinate myCoord =  QtMobilitySubset::QGeoCoordinate(lat, lon);
    
                // get reverseGeocode
                QGeoSearchReply* reply = searchManager->reverseGeocode(myCoord);
    
                QObject::connect(reply, SIGNAL(finished()), this, SLOT(readReverseGeocode()));
            }
        }
    }
    
    void Magic::readReverseGeocode()
    {
        qDebug() << "readReverseGeocode()";
        QGeoSearchReply* reply = qobject_cast(sender());
        // Save the city name to Settings for further use
        if (reply->error() != QGeoSearchReply::NoError)
            return;
    
        QList places = reply->places();
        if (places.length() <= 0)
            return;
        else {
            QGeoAddress address = places[0].address();
            qDebug() << "address.postcode() :" << address.postcode();
        }
        disconnect(reply, SIGNAL(finished()), this,SLOT(readReverseGeocode()));
        reply->deleteLater();
    }
    
  • get the Latitude and Longitude in Blackberry

    If you did an Andriod development then there is 1 function to get the latitude and longitude for perticular location called GeoPoint. Is it possible in blackberry where I placed the marker on the map: get lat and long for perticular location in the map, in any OS 5, 6 OR 7.

    Alternative option is reverse - geocoding I wanted to get all of this if it is possible for any google or blackberry card

    Thanks in advance

    Hi Peter had u check the andriod functionality?

    Its ok I use https://developers.google.com/maps/documentation/geocoding/
    Thanks for your help

    I tried to get it, but I don't have a good way to do that as an andriod.

  • Lightroom cc 6 saved location city, State? where?

    Hello

    I have lightroom cc 6 last generation, and in the option I have this option

    UplxNZt.png

    all my photos are coordinated, lightroom reads and fill all my photos with the right places, I see in the library-> metadata-> location

    my pictures are in raw + jpg, I select all my photos and save the metadata files

    but seems that lightroom does not save in xmp sidecar anywhere infromation, or does not save the location information on my jpg

    in the latest version of cc 2015 bridge, I see nothing on the city, State, in photoshop still nothing, I used exiftool, once again nothing

    How can I store all my site in my photos?

    Thank you

    It is a major design flaw in the card module LR users have complained for years.  When the card LR add suggested locations based on the GPS coordinates module, they appear in gray (Mac) fonts or italic (Windows). These locations "uncommitted" not be saved to the metadata for the picture.   However, they will display in the metadata of the exported images (provided that you selected the correct export options).  If you try to modify a field not validated, LR will erase all other fields!  You need to "commit" the fields first by clicking on the label (secondary, city, State, country) of each field of each photo.  Once a field has been committed, it is displayed in normal characters and will be saved in the photo metadata.  Awkward awkward.

    Two alternatives:

    -Use geocoding plugin Support to add the location information (reverse geo-coding).  This plugin also provides commands to add the GPS tracklogs.  Many people find greater than the card module.

    -Use the command Commit slots free in the Tag no matter what plugin to validate all fields location in a batch of photos.

    Please add your vote and notice to this feature in the Adobe official feedback forum request: Lightroom: better control the reverse geocoded location metadata | Community customer Photoshop family. Which will make (a little) more likely Adobe can solve the problem before the next ice age.

  • execution of Javascript blocks by first loading the app with google included api maps

    Hello

    I am a forms developer oracle and nine in the Apex. The apex is a wonderful tool for RAD. So, I'm currently developing an integrated mobile application with Google Maps features. For several days, I'm stuck on the following problem:

    Demo page: https://apex.oracle.com/pls/apex/f?p=364:4931249888545:

    When I run the present the first time it crashes after the registration point 'alert("2:geocoder")'; in the script. But after discount 'Page 2' is executed the script quite well.

    If I then run the page/application and previously deleted the browser cache is the problem here again.

    Here the implementation (one of the several hundreds of different try ):

    Page1: Button 'Gopage2': redirect to page 2

    Page2:

    -Settings page:

    File JavaScript URL: https://maps.googleapis.com/maps/API/js?v=3.exp

    Function and Global Variable declaration:

    function getRevLocation(){
    var geocoder;
    var marker;
    var lat;
    var lng;
    
    
    alert("Start");
    lat = parseFloat(48.9304902);
    lng = parseFloat(8.4458497);
    //lat = parseFloat($x("P6_LATITUDE").value);
    //lng = parseFloat($x("P6_LONGITUDE").value);
    alert (lat+"/"+lng);
    
    
    var latlng = new google.maps.LatLng(lat, lng);
    alert("1:latlng");
    
    
    geocoder = new google.maps.Geocoder();
    alert("2:geocoder");
    
    
    geocoder.geocode({'latLng': latlng}, function(results, status) {
    alert("3:inFunction");
    
    
      if (status == google.maps.GeocoderStatus.OK) {
        if (results[1]) {
           alert("4:StatusOK"+results[1].formatted_address);
           $s("P2_CITY",results[1].formatted_address);
        }
      } else {
         alert("6:Error");
         $s('P2_CITY',('Geocoder failed due to: ' + status));
        }
    });
    }
    
    

    Run when the Page loads:

    getRevLocation();
    
    

    Help, please. I'm totally desperate.

    Best regards

    Halit

    After many tests and learn the basics of javascript, here is the solution that works very well:

    In Page settings:

    URL of the file:

    https://maps.googleapis.com/maps/API/js?v=3.exp&callback=initialize

    Function and Global variable declaration:

    var geocoder;

    function initialize() {}

    Geocoder = new google.maps.Geocoder ();

    }

    function getreo (callbackFunction) {}

    var marker;

    var lat;

    var lng;

    LAT is parseFloat (48.9304902);.

    LNG is parseFloat (8.4458497);.

    LAT = parseFloat ($x("P6_LATITUDE").value);

    LNG = parseFloat ($x("P6_LONGITUDE").value);

    var latlng = new google.maps.LatLng (lat, lng);

    Geocoder.geocode ({"latLng": latlng}, {function (results, status))

    If (status == google.maps.GeocoderStatus.OK) {}

    If (results [1]) {}

    $s("P6_CITY",results[1].formatted_address);

    }

    } else {}

    $s ("P5_CITY", ("geocode is not right:" + status));

    }

    });

    If (callbackFunction)

    callbackFunction ();

    }

    Atrribute body of HTML page:

    OnLoad = "Initialize () '"

    In dynamic Action:

    Load event of the page with javaScript Action:

    getreo();

    In my application logic, I implement in above the dynamic Action, get the location coordinates with the Plugin 'Oracle - get location [plug-ins] HTML5 cards'. It fills the elements P6_LATITUDE, P6_LONGITUDE, P6_LOCATIONMSG

    In the next steep to get the reverse geocoding city of google. To do this, I created a second dynamic action at traffic lights after changing the value of the item p6_locationmsg went before plugin. She runs the javascript code to call getreo();

    Good luck!

    Halit Pan

  • ausgelesene GPS Lokationdaten fest in das Bild have

    Hallo Leute

    Gut dass ich endlich eine kompetente Stelle habe a kann die ich mich wenden.

    Seit Wochen versuche ich die ausgelesenen von den GPS-Daten Orte, land, Ortsdetails usw. Fest in die Bilder zu development.

    So habe ich versucht sie einfach einzutippen respect. Aber bei Bildern ist mir das einfach zu aufwändig 28,000.

    Someone wie ich sagen kann dies erhalte automatisiert.

    Vielen Dank fur Eure Hilfe

    Shivasubramanayam

    When it is white and erect writing, not italically. To do this, I have to do it (so far) for each pic to write by hand.

    Ah, I understand.  It is a poorly designed feature of LR.  You can get "involved" each field by clicking on the label "Country", "Department", etc.:

    This avoids retyping each field, but you must validate each field of each photo.

    My plugin Tag quite a places to commit command that will do it automatically for all of your photos at once: Any Lightroom Plugin tag.  This part of the plugin is free.

    Many people have complained about this 'device' LR - please add your vote and opinion on this in the Adobe official feedback forum: Lightroom: better control the reverse geocoded location metadata

Maybe you are looking for