JSR-179 GPS

Hi,
I want to have a custom Location object with my custom lat/lon.
How can I do this? is it possible?
Thank you for your replies if any :)

I got this email from Kevin Sally:
Hi Shahar,
The JSR179 spec/API is meant to be used on Mobile devices with an embedded GPS receiver. However, having said that, if you include the JSR 179 package in your JSE application for a PC, you can use the distance measurements etc that are packaged with the JSR179 package. It seems like overkill though, I am sure there are other open source packages out there that will provide the capability to measure distances between points, etc.
Basically, you will have to use streaming NMEA data on your serial port to aquire the GPS coordinates as the JSR179 spec is not meant to aquire GPS coordinates from a serial port.
I hope this helps.
Regards,
Kevin
Kevin Sally, P.Eng
Certified Senior IT Architect, IBM WebSphere Services
03/RKN/8200/MKM
email: [email protected]
(905)413-5613
t/l:969-5613

Similar Messages

  • JSR 179 - GPS access - webApp?

    If you have an GPS-phone with JSR-179 you can easily get the coordinates of where you are.
    But if you dont want to get the coords when using a web-browser where you would like to input them, can you even do that?
    (I am in control of the web page)

    lalvs wrote:
    Can we get the co-ordinates using JSR 179 in a mobile device(With out using GPS)? I mean using cell-ID?http://developers.sun.com/mobility/apis/articles/location/
    spatial location can be expressed in the widely used latitude-longitude-altitude coordinate system. Latitude is expressed as 0-90 degrees north or south of the equator, and longitude as 0-180 degrees east or west of the prime meridian, which passes through Greenwich, England. Altitude is expressed in meters above sea level.
    If so which are the phones supporting this feature.+JSR 179 requires the Connected Device Configuration (CDC) or version 1.1 of the Connected Limited Device Configuration (CLDC). CLDC 1.0 isn't adequate because it doesn't support floating-point numbers, which the API uses to represent coordinates and other measurements. The Location API doesn't depend on any particular profile -- it can be used with MIDP or the Personal Profile.
    The hardware platform determines which location methods are supported. If it doesn't support at least one location provider, LBS won't be possible. Applications can request providers with particular characteristics, such as a minimum degree of accuracy. Some location methods may be free; others may entail service fees. The application should warn the user before any charges are incurred. +

  • LocationProvider (JSR 179) implementation for GPS on PC

    Hello all,
    Can any one direct me please to a LocationProvider implementation for windows of the JSR-179 location api.
    it seems that each mobile device should have it's own implementation of the LocationProvider. what happens if my mobile device is an ordinary PC running Windows?
    for that matter in need also an implementation for linux...
    It seems so trivial, I just need an implementation that knows to read NMEA protocol out of a COM port....
    it should be simple I feel that I'm missing something... I'm trying to find something for that last 24h and come in vain.
    please help,
    tnx in advanced,
    Shahar Daniel

    I got this email from Kevin Sally:
    Hi Shahar,
    The JSR179 spec/API is meant to be used on Mobile devices with an embedded GPS receiver. However, having said that, if you include the JSR 179 package in your JSE application for a PC, you can use the distance measurements etc that are packaged with the JSR179 package. It seems like overkill though, I am sure there are other open source packages out there that will provide the capability to measure distances between points, etc.
    Basically, you will have to use streaming NMEA data on your serial port to aquire the GPS coordinates as the JSR179 spec is not meant to aquire GPS coordinates from a serial port.
    I hope this helps.
    Regards,
    Kevin
    Kevin Sally, P.Eng
    Certified Senior IT Architect, IBM WebSphere Services
    03/RKN/8200/MKM
    email: [email protected]
    (905)413-5613
    t/l:969-5613

  • Is there any j2me phone in india which supports jsr 179

    Hi everyone,
    Is there any j2me phone in india which supports jsr 179 ? I want to test gps application in India. If not supported the is there any other way to test GPS application in india ?
    Thanx in Advance
    Krishan

    hi
    just do visit
    http://www.nokia.co.in for phones available in india
    and for specification see
    http://forum.nokia.com
    hope information may help you
    regards & all the best,
    Vasco

  • NoClassDefFoundError in JSR-179 code

    Hello. I am testing some GPS capabilities on my 7100i Sprint/Nextel. Everytime I try to run my midlet on the device, I get the "NoClassDefFoundError". The 7100i is listed as implementing the JSR-179 spec, so I am at a loss.
    I have tried getting the result of the System.getProperty("microedition.location.version") and it returns "1.0" as it should according to the spec. I have explicitly enabled permissions in the midlet for the .Location class.
    The code I am using it coming directly from an example posted on BlackBerry's site ... http://www.blackberry.com/developers/journal/jan_2006/blackberry_gps.shtml?CPID=OTC-devfeb17
    Can anyone provide help on getting past this error?

    I kept poking around on this and found that the .jar file did not include the .class files from the JSR-179 implementation. I manually added these to the preverification and recompiled and re ran on the device. Now I am getting "...attempts to access a secure API". It seems from that now I have to use the Blackberry/RIM digital signing process to gain access to this. Any additional comments on these topics are very welcome!

  • JSR 179 and GSM

    Can we get the co-ordinates using JSR 179 in a mobile device(With out using GPS)? I mean using cell-ID?
    If so which are the phones supporting this feature.

    lalvs wrote:
    Can we get the co-ordinates using JSR 179 in a mobile device(With out using GPS)? I mean using cell-ID?http://developers.sun.com/mobility/apis/articles/location/
    spatial location can be expressed in the widely used latitude-longitude-altitude coordinate system. Latitude is expressed as 0-90 degrees north or south of the equator, and longitude as 0-180 degrees east or west of the prime meridian, which passes through Greenwich, England. Altitude is expressed in meters above sea level.
    If so which are the phones supporting this feature.+JSR 179 requires the Connected Device Configuration (CDC) or version 1.1 of the Connected Limited Device Configuration (CLDC). CLDC 1.0 isn't adequate because it doesn't support floating-point numbers, which the API uses to represent coordinates and other measurements. The Location API doesn't depend on any particular profile -- it can be used with MIDP or the Personal Profile.
    The hardware platform determines which location methods are supported. If it doesn't support at least one location provider, LBS won't be possible. Applications can request providers with particular characteristics, such as a minimum degree of accuracy. Some location methods may be free; others may entail service fees. The application should warn the user before any charges are incurred. +

  • Use Location API (JSR 179)

    Hello everybody!
    I'm studying JavaME and its APIs, especially the API JSR 179 (Location). Until I found tutorials on the Internet, though, as I am beginner, I can not locate me in code.
    The code was to take pictures, and imbuing it the geographical location of latitude and longitude, and write to a specific folder. However, only that the program captures the Latitude, Longitude and Altitude, and throw in the display.
    I ask your help to solve this problem.
    Thanks
    PS = To determine the speed, the API Mobility would be better, right?

    following tutorial will help you.
    http://wiki.forum.nokia.com/index.php/Mini_App_With_Location_API_and_Google_Maps_in_Java_ME
    Edited by: 795848 on Nov 20, 2010 1:15 AM

  • Anyone with JSR-179 phone needed!

    Could anyone please try the example below on one of the phones listed here:
    http://developers.sun.com/techtopics/mobility/device/pub/device/list.do?page=2&apiId=125
    The example is pretty straightforward:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.location.*;
    public class LocationMidlet extends MIDlet implements CommandListener {
        Command Exit = new Command("Exit",Command.EXIT,0);
        public LocationMidlet() {}
        public void startApp() {
            Form f=new Form("Waiting...");
            f.append("Finding for location...");
            f.addCommand(Exit);
            f.setCommandListener(this);
            Display.getDisplay(this).setCurrent(f);
            try {
                Criteria c=new Criteria();
                c.setHorizontalAccuracy(1000);
                c.setVerticalAccuracy(1000);
                c.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
                LocationProvider lp=LocationProvider.getInstance(c);
                Location loc=lp.getLocation(60);
                QualifiedCoordinates qc=loc.getQualifiedCoordinates();
                f.append("Alt: "+qc.getAltitude());
                f.append("Lat: "+qc.getLatitude());
                f.append("Long: "+qc.getLongitude());
            } catch(Exception e) {
                f.append("Exception: "+e);
        public void pauseApp() {}
        public void destroyApp(boolean destroy) {}
        public void commandAction(Command c, Displayable s) {
            if (c == Exit) {
                destroyApp(true);
                notifyDestroyed();
    }This example is from: http://www.java-tips.org/java-me-tips/midp/location-based-services-on-j2me-devices.html
    You would need the wireless toolkit 2.5
    It seems to be working in emulator but I don't have access to the proper device to test it and I have read that the mobile operator has to support this as well in order to work.
    Any help would be appreciated. Thanks to all.
    I just want ot check if using location API with jsr-179 enabled phones is possible and with which mobile operator have you tested it. Thanks!
    Message was edited by:
    kris_java

    <snip>
    Waiting...
    Finding for location...
    Exception: javax.microedition.location.LocationException: getLocation() method cannot be called from event thread
    </snip>
    That's what my BlackBerry 8800 says.
    martin[at]teambender.de

  • JSR-179 and Mobile Operators

    Hello!
    Anybody knows of a Mobile Operator that currently supports the J2ME Location API (JSR-179)?
    I havent managed to find anyone so far.
    Any Kind of Info will be greatly appreciated
    regards
    Thanos

    It is very frustrating. From the info I have found so far, many operators do offer various APIs to get location information, but this works from a server application (passing the MSISDN to the network operator's location server), and not from the device itself. These require that you have some business relationship with that operator. For example, Orange provide a location API (http://www.orange.co.uk/thirdparty/location.html") , but you have to be an "Orange Partner premium member" and Orange have to approve your application. No word on whether they will migrate this service to support JSR-179.

  • Location service fees (JSR-179)

    How do we determine costs associated with using the LocationProvider class? I'd like to have an idea during the design phase at the very least, and at most, be able to know at runtime so I can throttle requests based on costs of a particular user's service plan.
    Anyone?

    How do we determine costs associated with using the LocationProvider class? I'd like to have an idea during the design phase at the very least, and at most, be able to know at runtime so I can throttle requests based on costs of a particular user's service plan.
    Anyone?

  • How to access GPS from Nokia 5130 Xprssmusic?

    I have Downloaded one GPS app for my Nokia 5130 xpresmusic. But when i run the app; at staring, app shows one message that is, "No selected GPS receiver" and when I go to connect to GPS receiver manually, app automatically starts Bluetooth and again shows previous message. I am not getting what should I do now????? 
    Rahul More

    I don't know about GPS receiver.... According to some other expert suggestion, I need external GPS receiver which is one gadget which use to access GPS via Bluetooth of phone 
    I am developing a J2ME GPS based app & I am new in the GPS development field. For app testing purpose I want to connect my 5130 to GPS. I saw the specification of 5130 in that GPS & Location API(JSR 179) is absent that means my phone will not access GPS??
    Is there any possibility to add Location API or GPS in my phone?? 
    Rahul More

  • Getting GPS Co-Ordinates

    Hi,
    First of all, I hope that I am making this question in the right forum.
    Secondly, I am new to JavaME, so these questions might sound stupid.
    What I would like to know is if it is possible to obtain the GPS Co-Ordinates in a manner that is similar to the way that GoogleMaps get the location through the MyLocation feature, which basically performs triangulation and uses a phone's GPS (if present) to get the co-ordinates of the phone. The application I will use will not be running in a browser.
    Thanks in advance

    If your phone supports [JSR-179|http://jcp.org/aboutJava/communityprocess/final/jsr179/index.html] then you can get geo-location info. If your phones does not then you might be able to get CellID info and [you can look that up|http://www.opencellid.org/] to get approximate location info. If your phone supports Bluetooth AND [JSR-82|http://jcp.org/aboutJava/communityprocess/final/jsr082/index.html] then you can access and read GPS coordinates from a [external GPS receiver|http://www.buygpsnow.com/].

  • Nokia N95 GPS abilities

    Hi all,
    I have few questions about GPS using.
    - Does N95 support JSR179(Location API)? If yes, did anyone try to run MIDlets with using JSR179? Does it work?
    - Does N95 has intefaces to share GPS data to PC. May be the latest version of "PC suite" can collect GPS data from the device. I want to use the phone like GPS receiver for my laptop's applications.
    Thanks.

    Yes, it supports JSR-179. You can check it here:
    http://www.forum.nokia.com/devices/N95
    See also the Nokia developer discussion boards:
    http://discussion.forum.nokia.com/forum/index.php

  • Using 6700 Classic as GPS

    Hi!
    I have a Nokia 6700 Classic. It's said that I have GPS built in and I have 3 months free to use it.
    Is it possible to use this built in GPS module in a PC application like Microsoft Autoroute 2010?
    I searched and only found applications that seem to work on only S60 mobiles, I tried them on my phone, but it didn't work for some reasons, probably because I didn't know how it supposed to work.

    Hi regdude
    You raise an interesting point and you might like to look at this resource: http://library.forum.nokia.com/index.jsp?topic=/Java_Developers_Library/GUID-8610DF6B-1A97-4B53-B7C5...
    I mention this as your 6700 Classic does have JSR 179 Location API included as here:http://www.forum.nokia.com/Devices/Device_specifications/6700_classic/
    However you are correct in that I am not aware of any available third party Java applications utilizing this feature yet.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Deploy optional JSR

    Admittedly I'm new to J2ME so please bear with me.
    We're building a prototype of an app built around the Location API JSR 179. There are many physical devices that have the basic J2ME environment (MIDP 2.0 and CLDC 1.1) required to use this JSR. There are even a few devices (i.e. the Motorola i605 and i860) that have JSR 179 installed. However, there are many devices that do not have this JSR installed but that seem like the device would support it (i.e. Motorola i275, i730, i830).
    The question is...for those devices that do not "come from the factory" with JSR 179 installed, how can that JSR be installed? Can my application install that package if necessary? How do you go about doing this?
    I'd appreciate any help you can give!
    --steve                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thanks for the info!
    Just to make sure I understand.....if a phone is not preinstalled with a JSR, then it can not be installed later by the user?
    When you said "network operator needs to support it"....what exactly does that mean?
    --steve                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Uploading emails

    turning my blackberry on first thing in the morning, it takes over an hour for the emails to upload on to my smartphone.  it used it upload within 5 minutes of turning machine on.  sometime I have wi-fi turned on, sometimes not.  makes no difference.

  • How do you make it so that the ipod will play all the different artists featured in an album when you click that album to play?

    How do you make it so that the ipod will play all the different artists featured in an album when you click that album to play? At the moment, each artist in the album is being separated and I can't play them together. For example, to play the Halo 2

  • Lost audio control after update

    Hi - My audio progress bar shows full audio image on the desktop at all times and audio can't be muted or turned down. It makes this rhythmic metronome sound, flap, flap, flap. I have my speakers hooked up so I use them to mute the sound. Mute on G5

  • Some minor success with my Web templates

    Hello All, I have a new post on my blog, with another coming this evening. Things are rolling... Please have a read: http://lrwebtemplates.blogspot.com/

  • Failed installation left nomad explorer components, how do I remove th

    I recently did an installation of the Nomad explorer and Creative jukebox drivers, for my nomad zen xtra, but for some reason the installation never quite completed. I'm left with the start menu shortcut, as well as the nomad explorer dri've icon (un