如何根据谷歌地图网页上的latlong变量更新位置? [英] How to update the location based on the latlong variables in google maps on web page?

查看:324
本文介绍了如何根据谷歌地图网页上的latlong变量更新位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对web应用程序很陌生。我建立了一个android应用程序,它将每秒发送移动用户的纬度坐标。现在我想要构建一个将呈现Google Map的Web应用程序。它应该每秒从android设备接收latlong坐标,并相应地移动地图上的位置标记。我应该使用什么来实现它?我应该怎么做?
我想在这里使用java。

解决方案


  1. 发送消息给你的应用程序,包括lat& lng ..通过任何消息传递技术。

  2. 您的网络应用程序应该听取这些消息事件并从消息接收位置。

    >
  3. 您应该在HTML中使用任何脚本语言,并且可以在您的页面中加载谷歌地图,并根据收到的消息位置,您可以在地图上绘制标记以显示设备当前位置。然后要更新位置,您可以更改该标记的位置。




  4. 这是您的问题的简要说明,如何加载HTML中的地图以及如何放置标记......你可以在google上获得这些东西。

    I'm pretty new to web applications. I built an android application which will send latlong coordinates of the mobile user every second.Now I want to build a web application which will present Google Map. It should receive the latlong coordinates every second from the android device and should move the location marker on the map accordingly. what should I use in order to make it happen? How should I do it? I want to use java here.

    解决方案

    1. Your android device must send message to your application including lat & lng.. by means of any messaging technology.

    2. Your web app should listen to those message events and receive location from msg.

    3. You should use any scripting language with HTML and can load google map in your page and according to received location from message you can plot marker on map which will display current location of device. Then to update location you can change that marker's position..

    This is brief description of your problem, how to load map in HTML and how to place marker ..you can get this stuff on google

    这篇关于如何根据谷歌地图网页上的latlong变量更新位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆