Hi i am new to blackberry application development.I want to get current gps location detail.I had successfully got the latitude and longitude but i dont know how to get the current address.can any one give me a sample?Pls thanks in advance.
标签:
blackberry
相关问题
- How to make background of BrowserField transparent
- Eclipse Blackberry Preprocessor Not Working?
- Cannot register in sample BlackBerry push applicat
- Problem sending AJAX request with headers on Black
- decrypting data with AES/CBC/PKCS5Padding using bl
相关文章
- To get the module names in blackberry
- How to close a global dialog and display another i
- How to install a draft app on a blackberry sandbox
- FB SDK not working on OS 7
- Parent & Child Node with different images & Clicka
- SQLite for BlackBerry
- How to send SMS Programmatically in Blackberry
- Twitter Integration in Blackberry: Login Page not
What you are looking for is called "Reverse Geocoding." RIM has an example of exactly how to do this on the BB platform (well, one way to do it anyway).
You can use Google map to resolve your issue, Google map will return a JSON (or XML) according to your choice if you request with a lattitude and longitude.
The url is:
http://maps.google.com/maps/geo?json&ll="+_lattitude+","+_longitude
This will return all the details of the given latitude and longitude in JSON format,And you have to parse the JSON returned by Google map.
You can use the below code:
Note: I use a FacebookBlackBerrySDK-0.3.5-src to parse JSON or you can XML aslo.