基于位置的服务应用程序设计要求

发布于 2024-10-18 12:22:11 字数 250 浏览 3 评论 0原文

然而,我想使用 J2ME 设计一个移动应用程序,可以帮助用户找到我所在城市附近的资源。

它更像是应该使用 GPS 来定位附近的资源,例如餐馆、酒吧、停车场、医院等等。

我正在请求实现这一目标所需的一切。我一直在阅读这些帖子,看来设计一个 LBS 需要大量的时间。

我需要做什么才能实现这个目标?我相信我可以使用 J2ME 的 Location API。如何集成 OVI 地图?

PS:这个应用程序需要使用 J2ME 吗?

I however, would like to design a mobile app using J2ME that can help users locate nearby resources in my city.

It is more like should use GPS to locate nearby resources like restaurants, saloons, car parks, hospitals to mention but a few.

I am requesting for what I need to pull this off. I have been reading through the threads, and it seems designing an LBS needs a huge amount of time.

What do i need to pull this off? I believe I can use Location API for J2ME. How can i integrate OVI maps ?

PS: do i need to use J2ME for this application ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

嘿嘿嘿 2024-10-25 12:22:11

我认为你应该下载谷歌地图,使用它,然后发现你梦想的项目已经实现了。 :(

抱歉这个坏消息...

I think you just should download Google maps, play with it and find out that project your dreaming about has been already implemented. :(

Sorry for the bad news...

一抹淡然 2024-10-25 12:22:11

您的应用程序所需的时间取决于您开发应用程序的专业知识。

要快速查看基于 j2me 位置的应用程序(假设您使用的是 netbeans IDE),请打开 New Project>Samples>Java ME Samples.. 选择 City Guide 并查看它。

您也可以使用谷歌地图来实现此目的。最近我在我的 Android 应用程序中使用谷歌地图。下面是一个代码片段:

public class GPS extends MapActivity 
{
    private LocationManager lm;
    private LocationListener locationListener;

    private MapView mapView;
    private MapController mC;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main); 

        //---use the LocationManager class to obtain GPS locations---
        lm = (LocationManager) 
            getSystemService(Context.LOCATION_SERVICE);    

        locationListener = new MyLocationListener();

        lm.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,0,locationListener);
        lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0,0,locationListener);

        mapView = (MapView)findViewById(R.id.map);
        mC = mapView.getController();
    }
.. rest of the class..

对于 Java 设备,您需要使用 J2ME。 Symbian 可能使用 C++ 变体。

The time required for your app is dependent of your expertise in developing the app.

For a quick look at j2me location based app (assuming you are using netbeans IDE) open New Project>Samples>Java ME Samples.. Select City Guide and have a look at it.

You can also use google Maps for this. Recently I was using google maps for my android app. Here is a code snippet:

public class GPS extends MapActivity 
{
    private LocationManager lm;
    private LocationListener locationListener;

    private MapView mapView;
    private MapController mC;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main); 

        //---use the LocationManager class to obtain GPS locations---
        lm = (LocationManager) 
            getSystemService(Context.LOCATION_SERVICE);    

        locationListener = new MyLocationListener();

        lm.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,0,locationListener);
        lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0,0,locationListener);

        mapView = (MapView)findViewById(R.id.map);
        mC = mapView.getController();
    }
.. rest of the class..

For Java devices you need to use J2ME. Symbian probably uses C++ variations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文