开发者

Display current GPS or GEO location on website map

Is there a way to display your current location on a website by using your phone or GPS receiver and Google maps (or something similar)?

Basically, I have a client that has a tourist business on a river and they wish to display their current 'live' location (开发者_JS百科Updating every 10 - 30 seconds).

Is this possible? And if so, what is the best way to achieve this?


Instamapper was the answer you needed, but that service goes away on 12/13/12. They have a web page and cellphones upload your GPS location. After that I'm not sure how this will be done.


The solution consists of two parts (I assume your client is on a boat on the river and the map should show the boat's location; your question isn't too clear):

  1. The business needs a web page with a (e.g.) Google Map on it. The page displays a pin with the current boat location
  2. The boat needs a GPS receiver and a cellular data module that reports the current position from the GPS to some piece of software on the web server (via cell data). The server uses this position report to update the map.

There are off-the shelf hardware parts for the second point.


There are many API's for Goole Maps and Earth.

http://code.google.com/apis/maps/index.html

This will probably be the language you will use.

http://code.google.com/apis/kml/documentation/


I made Tracman to let you do this. You download an android app which sends your location to a server by websockets. Then you get a URL with a map, which you can also embed in your website. Here's an example on my site.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜