Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Latest news

Last at Tue, 3 Apr 2012 23:31:42
Topic: MapXT SDK evaluation
See more news »

Fetch current location name

7 replies [Last post]
zakirhussain49
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 01/02/2012

Hi All,

I am working on map and i want to show current location name so anyone suggest me how i achieve this task.

Thanks & Regards
Zakir Hussain

jaak
User offline. Last seen 14 hours 33 min ago. Offline
Joined: 06/19/2008

There is guide how to get location on BlackBerry: http://supportforums.blackberry.com/t5/Java-Development/Location-APIs-Start-to-finish/ta-p/571949 . You can then add a Place to given location, but you need to remove it for new location, and add again. Nutiteq SDK has also location API based on JSR-179 standard, but it is not so flexible as BlackBerry API directly, with all criterias etc, so it may or may not work for your device/case.

/JaakL

jaak
User offline. Last seen 14 hours 33 min ago. Offline
Joined: 06/19/2008

ps. showing current location is now also in https://bitbucket.org/nutiteq/blackberry-map-samples. Or do you want to get placename for the location? There is no built-in API in Nutiteq SDK for this, but there are other options. Maybe you can use Blackberry own API (http://docs.blackberry.com/en/developers/deliverables/11944/Reverse_geocode_API_example_869857_11.jsp) . There are also some online web services which can do it, I would try for example free MapQuest open API http://developer.mapquest.com/web/products/open/nominatim service. Check out Reverse Geocoding there. Sample request which gives JSON response: http://open.mapquestapi.com/nominatim/v1/reverse?format=json&json_callback=renderExampleThreeResults&lat=51.521435&lon=-0.162714

/JaakL

zakirhussain49
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 01/02/2012

Hello jaak,

I want the current location address so can you provide your suggestion ASAP.

Thanks & Regards
Zakir Hussain

jaak
User offline. Last seen 14 hours 33 min ago. Offline
Joined: 06/19/2008

Did you see my second comment above?

/JaakL

zakirhussain49
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 01/02/2012

Thanks jaak,

but blackberry doesn't provide Asian country map so we can't get the location name of Asian country by using BB function

if any other suggestion please provide me

Thanks & Regards
Zakir Hussain

zakirhussain49
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 01/02/2012

Hello jaak

I want to change the image of "/person.png" in class PersonPlacemark.java with the stored image in phone gallery or capture by using camera

i done everything but when i use gallery or camera it return image in byte

FileConnection file = (FileConnection)Connector.open(filename);
InputStream is = file.openInputStream();

byte[] imageData = IOUtilities.streamToBytes(is);

so please provide your suggestion ASAP how i change image

Thanks & Regards
Zakir Hussain