BlackBerry Maps - unable to calculate route

Hello

I have an application which, at the click of the button, called the Blackberry maps with a rental document to get directions using latitude and longitude, here is the example it does

Location myLocation = myLocationProvider.getLocation (120);
Latitude = myLocation.getQualifiedCoordinates () .getLatitude ();
Longitude = myLocation.getQualifiedCoordinates () .getLongitude ();

int iLatitude = (int)(latitude*100000);
int iLongitude = (int)(longitude*100000);
Log.info ("latitude:" + iLatitude);
Log.info ("longitude:" + iLongitude);

String document = ""+ "
""+
""+
"
"  ;
                  
                              
String document1 = ""+ "
//      ""+
//       ""+
//         "
";

Log.info ("document:" + document);
                    
Invoke.invokeApplication (Invoke.APP_TYPE_MAPS, new MapsArguments
(MapsArguments.ARG_LOCATION_DOCUMENT, document) ;

This code example gives me "unable to calculate the route. But when I use the string document1 (provided in Blackberry maps reference), it works fine. The iLatitude and the ilongitude come to simulate location GPS optionally simulate in the Simulator. I use BB JDE 5.0.0 and Blackberry 9700 Simulator.

Below the log where you can see the values of iLatitude and iLongitude and localization of debugging is created:

There an IllegalArgumentException, which I think is the problem because it does not come when I use the other location document1.

MISVt = 1, h = 336bis, id = d15a33128dfbb5d9
VM:LNTDa = validation, t = 1, p = TestClient
latitude: 5182134
Longitude:-128848
Document:
From net_rim_bb_lbs
Net_rim_bb_lbs (251) started
Net_rim_bb_lbs (251) foreground
Background switch detected for TestClient (248) that does NOT have the tunnels open - defocus is NOT called
Switch detected in the foreground for net_rim_bb_lbs (251) that does NOT have the open tunnels - focus NOT called
FocusHistory: Lost Focus; App TestClient. Component com.sybase.uep.bobclient.controls.Button
VMISVt = 0, h = 336bis, id = d15a33128dfbb5d9
VM:LNTDa = validation, t = 0, p = net_rim_bb_lbs
VMISVt = 1, h = 336bis, id = d15a33128dfbb5d9
VM:LNTDa = validation, t = 1, p = net_rim_bb_lbs
FocusHistory: Acquired Focus; App net_rim_bb_lbs; Component net.rim.device.apps.internal.lbs.MapScreen
FocusHistory: Lost Focus; App net_rim_bb_lbs; Component net.rim.device.apps.internal.lbs.MapScreen
FocusHistory: Acquired Focus; App net_rim_bb_lbs; Component net.rim.device.api.ui.container.DialogFieldManager$ FocusNullField
Directions.getDirections () sends a request to the server
RequestThread$ 1: wire Req: try Conn: url =http://routes.blackberry.com/route2/;deviceside=false; ConnectionUID = S 00005, attempt #= 1, type = 4 trans
RequestThread$ 1: connection failed - url =http://routes.blackberry.com/route2/;deviceside=false; ConnectionUID = S 00005, attemptNumber = 1, transport type = 4, exception = insufficient coverage
FocusHistory: Lost Focus; App net_rim_bb_lbs; Component net.rim.device.api.ui.container.DialogFieldManager$ FocusNullField
$ 1 RequestThread: Req thread: conn attempt: url =http://routes.blackberry.com/route2/;interface=wifi, attempt #= 1, type = 6 trans
RequestThread$ 1: connection failed - url =http://routes.blackberry.com/route2/;interface=wifi, attemptNumber = 1, transport type = 6, exception = insufficient coverage
$ 1 RequestThread: Req thread: conn attempt: url =http://routes.blackberry.com/route2/;deviceside=true, attempt #= 1, type = 1 trans
The addition of process = net_rim_bb_lbs (251) table
Addition of the tunnel id = 1mode = FG to process = net_rim_bb_lbs (251)
RequestThread$ 1: request thread: conn attempt succeeded: url =http://routes.blackberry.com/route2/;deviceside=true, attempt #= 1, type = 1 trans
RequestThread: ServerExchange wire: using url and the type of connection 1 = [http://routes.blackberry.com/route2/;deviceside=true]
Error: DirectionsRequest: error when converting byte array data stream input: java.lang.IllegalArgumentException: Directionsrequest::readResponse(): read length not valid the server response packet. Length of the package = 0
Error: Directions: Directions request error: 1, URL: http://routes.blackberry.com/route2/, request:

Please can someone help me with this error...

Thank you

Blanchard

Hello

My problem solved. The thing was to test my application, I used values of Latitude and longitude of a card (on the internet) and the values that I picked up were probably not really accurate, reason for which he was not able to calculate the route. Then my web service has begun to send me good lat and long values based on geolocation, it started working. There is nothing wrong with my code, it was test values I was providing were not as accurate as they should have been.

Thank you

Blanchard

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Maps vs Google Maps

    Hi, I'm developing an app for the Blackberry Curve 8520. The application must be able to pick up the location of the user and view the nearest locations on a map. The user can then select which store that they would like to visit and the application displays the route of their current location.

    I read a little the advantages and disadvantages for Blackberry and Google maps and not sure as for the one to use.

    Google Maps is supported on the Blackberry Curve? And if I use it in my application it requires the user to also download Google Maps before using the app? If I had to use Blackberry maps rather it will have the ability to establish a route to the destination?

    Any thoughts on this topic would be welcome.

    the google maps app is available for the device, Yes.

    but it does not offer an API. There are workaround solutions such as calling it with a document lbs, but nothing official or sufficient for more complex operations.

    BlackBerry maps can draw a route to the destination. Note that some advanced features are only available to certain OS levels upward (but unless you have a very old curve which is not a problem).

    I would say blackberry maps, the built-in API makes it much easier to use and they have come a long way since their first release.

    I use google maps personally most of the time, but not for development.

  • BlackBerry Smartphones unable to reinstall the bb maps

    Hey, I deleted by mistake bb maps and trying to download it I have 2 options 1 is when RIM sends me a download link that downloads then a 'lbs_ribbon' who is from 10 k only! and really does nothing more being added to the list of app but the application there is no show.

    the second choice official website tells me to connect the phone and tap Next and then gives me a "unspecified error."

    Another thing I ve tried to download bb maps 1.2 zip on my pc and add the file alx on the application loader on Desktop Manager that installs correctly cards but on the race, I get an error "error from net_rim_lbs: class 'net.rim.device.apps.api.quickcontact.QuickContactIcons' not found.

    I'm on a stand called Etisalat Egypt... my data plan is working and unlimited and that it does not obstruct the cards like AT & T (as it worked perfectly right, before deleting)

    I use a 9000 "BOLD"

    V4.6.0.303 (platform4.0.0.248)

    v3.8.5.50A cryptographic kernel

    3rd party applications installed:

    BeBuzz, facebook, windows live messenger.

    any help would be appreciated more than

    Thank you.

    Omar

    First find your carrier and the OS file that you want to use, identical to load on your device now.
    http://NA.BlackBerry.com/eng/support/downloads/download_sites.jsp

    Make sure that the Desktop Manager is closed on your PC.

    1. download the OS files to the PC then install on the PC by running (double click) the downloaded file.
    2. go in c:\program files Research in motion\apploader and delete the file named "vendor.xml."
    3. plug in the BB and double-click on "Loader.exe." It is located in the same place as the above vendor.xml file.

    4. choose from the list of your BlackBerry Maps applications to install and follow the prompts to complete the installation.

  • BlackBerry Smartphones Blackberry Maps and the India and Google maps and COD 907 error

    Hey! so are blackberry maps available in India yet? do not appear on my curve 9360...
    You can also im unable to download google aps it says Error 907 something on an invalid COD
    any idea anyone?

    Finally, I read, no BlackBerry Maps is not available in India

    And the data source is in fact TomTom, not Google Maps.

    I recommend that you use Google Maps, personally, they are a bit softer and richer than BBMaps.

  • Exception in BlackBerry Maps demo

    Hello, I'm testing BlackBerry Maps demo in the Simulator "BOLD", but when I run the "View Route" option a Null pointer exception that happens...  Someone at - it the same?

    Probably, you could give a try on 4.6.0.12. tbilisoft also tried and confirmed it works on this version of the JDE.

  • BlackBerry smartphones download Blackberry Maps

    I have a "BOLD" and am unable to download Blackberry Maps. When the computer it tells me to go to my "BOLD" and download it from there. When I enter on the Blackberry site I can not locate the download of the map.

    As Google Maps provides voice instructions, is it a (free) software that can be used for this arrest?

    See you soon.

  • BlackBerry "BOLD", Blackberry Maps and AT & T smartphones

    I'm on AT & T and I have a "BOLD".  When I FINALLY found the download for blackberry maps site it would download to my phone.  D/l site maps said it was compatible with devices that are running the version 4.1 and 4.2.x and my "BOLD" version 4.6.  Blackberry Maps will be always available for my version?

    Thank you.

    P.S. I downloaded Google maps, but only uses the Weatherbug Blackberry Maps app.

    I guess the service customer call and ask would be little about as useful as asking my dogs of technical support.  I managed to get the BB maps on the phone, but AT & T has done something to hide the icon so I am unable to run BB maps as a stand-alone application.  WeatherBug and Poynt all consider two blackberry maps so I have now all features of both apps and I'll just have to use google maps for directions.  In the AT & T forums, some people have reported finding BB maps just by changing themes.  Who has not worked for me.

    I downloaded the new software for the "BOLD" here.  https://www.BlackBerry.com/downloads...E4F82F9F00E7D4

    I installed the new software taking care to check the box to install BB maps.

    BB maps icon is non-existent but the app is displayed in the list of applications and other applications are able to use BB maps.

    If anyone has any input on how to make the visible icon, please report it here.

    Thank you

  • My BB CUrve 9320 blackBerry smartphones are not supported Blackberry Map (GPS)

    Why I can't open Map (GPS) Blackberry in my BB Curve 9320?

    kyachinumog wrote:

    Yes, I'm the India... n its Airtel India... so can I know when people India get service map BB... why the r negleted India?

    Hi kyachinumog

    No, I'm sorry but you are wrong! RIM has never neglected the India or any country in Asia, infact they do much more for us than America or Europe. Regarding the support for BlackBerry Maps questions have been raised regularly. As she opened a Forums I don't want to explain all the facts, but some of our Government policies restricting these Services in India and a few country neighbors. I hope you understand.

    Prince

    ____________________________________________________________________________

    Click 'Like' If you want to thank someone.

    If problem resolves mark message (s) as a 'Solution', so that others can use.

  • Possible to send location for BlackBerry maps using the cards: / / URI?

    I was wondering, since we can launch BlackBerry maps maps: / / is there a way that we could send a location for maps of the URL?

    As maps://Kingston-Upon-Hull

    You can use ' geo:,' uri without the ' / /'.

    For example, this url should get you close to where I live:
    Geo:46.29, - 72.66

  • Z10 blackBerry how do you remove BlackBerry Maps of the Z10

    Maps does not work so I would remove and reinstall from BlackBerry World.

    How do you remove BlackBerry Maps of the Z10?

    Try this

    http://supportforums.BlackBerry.com/T5/General-BlackBerry-10-Smartphone/how-to-reload-your-Blackberr...

  • BlackBerry Blackberry Maps Z10 does not not on Telus

    BlackBerry Maps were not loading for me since yesterday at 19:00.  I rebooted my phone, took in the SIM without success.  The map loads and get my position, but the entire map is just a blank white screen.

    A friend in one of the BBM groups in that I am is also having the same problem with a Z10 on Telus.  It is in Calgary, I'm in Toronto.  Internet and everything works.  Third-party applications that use the API of the card still work perfectly.

    I'm on Telus with an OS Z10 10.1.0.4181

    I use the Blackberry Maps 10.1.0.810 version

    There work.  had clear the history:

    1. open maps

    2. pull on the adjustment of the top menu (sliding down the top and press settings)

    3 clear history

    4. all clear

    5 cards close and restart maps

    Don't know why it would have created a problem although...

  • Display the current location on Blackberry Maps

    Hi all

    I have an application that displays a number of places on a map. I have create a situation with all the included sites document and then call blackberry maps. This all works fine, but I can't work on how to show the current location of the user and the sites that I spent in.

    Ideally, I would like to the user's location to display a small blue mark (like it on google maps) and sites to display as normal red pawns. Is this possible?

    Otherwise, I thought to put the current location in the rental document (which I did successfully for more information getRoute) but how then the user distinguished between their situation and sites? Is it possible to create custom pins?

    MapField gives you the opportunity to paint your own markers. I suggest that you look on this.

  • Z10 BlackBerry Z10 STL100-1 update blackBerry than BlackBerry Maps 10.1.0.805 install failed

    Device: BlackBerry Z10
    Model: STL100-1
    Software version: 10.1.0.273
    OS version: 10.1.0.1720
    Carrier: Beeline KZ
    Country: Kazakhstan

    1. Update for BlackBerry Maps downloaded but not installed. What can be the problem?

    2. the maps are not available for the Kazakhstan now. When do you intend to run this country's support?

    Thanks to you all. In update 10.1.0.808 has solved the problem

  • BlackBerry Maps Z10

    Cards work fine, except that the screen is empty. Occurs with Blackberry Maps and BeMaps Pro. So useless for navigation.

    Mine stays on then anyway using cards, I don't know why yours is not. This is why it is not a parameter.

  • BlackBerry Maps or Google Maps

    Hello.

    I'm integrating maps in my application. Nothing GPS using this time just a map showing a location. The location only info I have is an address string that I will be back from a web service call, in other cases, we can access the latitude and longitude, but for now I have only the address string.

    With Google Maps, I know it's too easy because I can just manipulate the URL a bit with my address string and it seems to works of 80 to 90% of the time. But I leaned in BlackBerry maps, as our BlackBerry users are probably already very familiar with BB maps, I would use if possible.

    Can I enter an address string and have BB maps to show me the location? I looked at the MapFieldDemo, the cards look rather bland and it seems I have to program the real movement of the cursor in detail. Is there a simple way to display a map?

    Should I use BB Maps or Google Maps? And anyone know any good examples?

    Thank you.

    How about using google maps api for geocoding. It converts the address in latitiude, pair of longitude. and then you can open that in blackberry maps

Maybe you are looking for

  • Apple mobile usb driver disappear after sync iphone

    After updating to the latest version of Itunes, that the mobile usb driver appple disappears after syncing my Iphone and I have to reload the driver manually from program files before you plug the Iphone or Itunes does not detect the Iphone?

  • Unlocking of a type of Toshiba HDD M6025GAS

    I use the drive HARD internal of my laptop dead as an external HARD drive on my netbook Samsung N510. When I attach the HARD drive to another PC/Mac, I discovered that I can copy the elements of it, but cannot copy their return; Although this does no

  • Pavilion Elite HPE (HPE-210y): Travel in RAID 0

    Hi all. Recently, I upgraded my hard drive of 1 TB to 2 TB. I bought two hard drives of 2 TB because I planned to run RAID 1, but after that I cloned one of the 2 TB drives and removed the old 1 TB, I decided to save in a different way.   I have most

  • Satellite A500-1GL - fails self-test on start up

    My A500-1GL fails self-test on startup upward and freezes with screen Toshiba is innovation leader displayed. Try F2 for Setup and F12 for the boot menu in which two cases, in what it says entering start menu or enter the setup and remains like that.

  • Rectangles to the bottom of the screen

    Hi all.I googled all day to try to find the fix for the rectangles on the side of the screen. The only thing I've found is if you go to Catalyst Control Center, click on desktop and screens, then right-click in the smaller screen and click on set up,