BlackBerry Maps Directions
I have the coordinates that are in double representation (47.xxxxx, etc.) and the Blackberry Maps rental document takes 47xxxxx.
Is it possible for me to convert it?
Of course, you multiply by the constant working groups:
Constant of WGS to convert real coords to the integer format BB
public static final int WGS84_CONST = 100000;
Tags: BlackBerry Developers
Similar Questions
-
How to develop a GUI that like the tabs in popup of the Google Maps 'Directions '?
Hello
I used the BlackBerry JDE 4.2 to develop an application MIDLet on the SmartPhone like BlackBerry 83xx. However, I looked at the RIM device Java library, I couldn't find the controls that can contribute to the development of a GUI which like the tabs in popup of the Google Maps 'Directions '.
If anyone knows how to do this, please share your light.
Thank you very much!
You have to create yourself. See this Knowledge Base article to start...
-
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
-
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
-
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.
-
Device: BlackBerry Z10
Model: STL100-1
Software version: 10.1.0.273
OS version: 10.1.0.1720
Carrier: Beeline KZ
Country: Kazakhstan1. 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
-
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
-
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.
-
Reg; Invoking in blackberry maps
Hello
In my application I want to call cards, for that I have use mapview and everything is fine.but unfortunately I heard that blackberry maps is supported only in some countries...
in my application, I want to show the County such as the India, Afghanistan etc... those who are not supported by blackberry maps...
so please someone suggest me how can I get these countries also if I select it in of my very urgent application.it to me pls give answer me as soon as possible...
I use jde 4.7 for my application...
Here is the sample code snippet that works very well for me.
Using this code, you can display unique location on the map.
class GoogleSingleLocation_Scr extends MainScreen { public GoogleSingleLocation_Scr() { } protected void makeMenu(Menu menu, int instance) { super.makeMenu(menu, instance); menu.add(mInvokeGMaps); } MenuItem mInvokeGMaps = new MenuItem("Run GMaps", 0, 0) { public void run() { GMLocation location = new GMLocation(51.507778, -0.128056, "London"); invokeGMaps(location); }; }; public void invokeGMaps(GMLocation l) { int mh = CodeModuleManager.getModuleHandle("GoogleMaps"); if (mh == 0) { try { throw new ApplicationManagerException( "GoogleMaps isn't installed"); } catch (ApplicationManagerException e) { System.out.println(e.getMessage()); } } URLEncodedPostData uepd = new URLEncodedPostData(null, false); uepd.append("action", "LOCN"); uepd.append("a", "@latlon:" + l.getLatitude() + "," + l.getLongitude()); uepd.append("title", l.getName()); uepd.append("description", l.getDescription()); String[] args = { "http://gmm/x?" + uepd.toString() }; ApplicationDescriptor ad = CodeModuleManager .getApplicationDescriptors(mh)[0]; ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args); try { ApplicationManager.getApplicationManager() .runApplication(ad2, true); } catch (ApplicationManagerException e) { System.out.println(e.getMessage()); } } }
Suppose if you display several location on google maps, you need to prepare a KML file and make it available on the public server what google map can be accessed
Some links to URLS that might be useful for you.
http://code.Google.com/intl/en/APIs/maps/documentation/mapsdata/developers_guide_java.html#audience
-
Clickable PINS in BlackBerry map / Google Map in BlackBerry
Dear all,
Can I make clickable PINS on the map of the BlackBerry / Google Map in BlackBerry to call specific screen or call dialogue
the 5.0 OS and more.
Thank you.
In OS 6.0, you have the optin to using a RuchMapField.
Before that, there are possibilities, ranging from what you will find in the following links, but I suspect it's a lot of work.
http://StackOverflow.com/questions/10930115/how-to-draw-clickable-pin-point-on-BlackBerry-map
Maybe you are looking for
-
I sometimes get a popup of malware which forces me to restart my mac mini to get rid of it. This happens on chrome or firefox. What would you recommend I do? Thank you
-
HP Pavilion a6000n: no need for replacement motherboard - it's the standard micro ATX?
I want to upgrade this computer and get a new card mother and CPU. Currently there is a M2N68-LA/NARRATED-GL8E made by Asus for HP. No matter what micro ATX motherboard will work, or that it has an odd size or placement of screw hole or else incompat
-
Share a single SIM card between two iPads.
Share a single SIM card between two iPads. I want to get an iPad pro and already have an iPad 2 air. I want to be able to use my ATTdata package on both devices, if possible. Can I change the activated SIM card back on the fly between the two devices
-
700 - 210xt envy: adds browser
Suddenly my browsers have adds adds. Anyone know what is happening & how to correct? TIA
-
I have a simple motorolla krazr cell, all I want is to know how to transfer pictures on my Toshiba lap top. I managed to download the Motoralla software on top of the Tower, but I've been at this for 3 h and can not understand. Help, please...