我想在公共网站上创建一个RSS源,在地图上显示我通过GPS的位置

时间:2022-11-05 21:45:14

I bought a GPS tracker for my motorcycle. Family can log into the website and track me with no problem. I want to create a simple website that can allow friends/fellow riders to see where I am as well. The GPS tracker lets me log in and grab "XML" code that looks like this:

我为我的摩托车买了一台GPS追踪器。家人可以登录网站并跟踪我没有问题。我想创建一个简单的网站,可以让朋友/同伴们看到我在哪里。 GPS跟踪器让我登录并获取如下所示的“XML”代码:

<rss xmlns:georss="http://www.georss.org/georss" version="2.0">
<channel>
<title>GoTrack Location Feed for Edsrocket new</title>
<link>http://www.gotrack.com</link>
<description>Location Matters</description>
<language>en-us</language>
<item>
<title>
Location reading on Wed, 22 Apr 2015 17:12:34 -0400
</title>
<description>1324 NW Main St, Lee's Summit MO</description>
<georss:point>38.9372168 -94.3922705</georss:point>
<speed>0</speed>
<direction>0.0</direction>
<pubDate>Wed, 22 Apr 2015 17:12:34 -0400</pubDate>
</item>
</channel>
</rss>

I then need to either have either complete HTML code or an RSS feed url to add it to the webpage.

然后,我需要有完整的HTML代码或RSS提要网址才能将其添加到网页。

I have read about XML, RSS, and watched YouTube videos.. and I just can't figure it out. Thanks!

我读过有关XML,RSS和观看YouTube视频的内容......我无法弄明白。谢谢!

2 个解决方案

#1


0  

Here is one solution to share the XML using Dropbox:

以下是使用Dropbox共享XML的一种解决方案:

  1. Save the XML to your Dropbox Public folder as a XML-file (for example georssfeed.xml)
  2. 将XML作为XML文件保存到Dropbox Public文件夹(例如georssfeed.xml)

  3. Share a public link to your friends. The link will something like: https://dl.dropboxusercontent.com/u/1234567/georssfeed.xml
  4. 与您的朋友分享公共链接。链接将类似于:https://dl.dropboxusercontent.com/u/1234567/georssfeed.xml

When you get new GPS data, overwrite the file in your Public folder with a new file or create and "publish" a new RSS feed file the same way as described earlier.

获取新的GPS数据时,使用新文件覆盖Public文件夹中的文件,或者按照前面所述的相同方式创建并“发布”新的RSS源文件。

#2


0  

The code appears to be RSS, so if it is public, people should be able to simply subscribe to it if you give them the url location of it.

代码似乎是RSS,所以如果它是公开的,那么如果你给它们url的位置,人们应该能够简单地订阅它。

#1


0  

Here is one solution to share the XML using Dropbox:

以下是使用Dropbox共享XML的一种解决方案:

  1. Save the XML to your Dropbox Public folder as a XML-file (for example georssfeed.xml)
  2. 将XML作为XML文件保存到Dropbox Public文件夹(例如georssfeed.xml)

  3. Share a public link to your friends. The link will something like: https://dl.dropboxusercontent.com/u/1234567/georssfeed.xml
  4. 与您的朋友分享公共链接。链接将类似于:https://dl.dropboxusercontent.com/u/1234567/georssfeed.xml

When you get new GPS data, overwrite the file in your Public folder with a new file or create and "publish" a new RSS feed file the same way as described earlier.

获取新的GPS数据时,使用新文件覆盖Public文件夹中的文件,或者按照前面所述的相同方式创建并“发布”新的RSS源文件。

#2


0  

The code appears to be RSS, so if it is public, people should be able to simply subscribe to it if you give them the url location of it.

代码似乎是RSS,所以如果它是公开的,那么如果你给它们url的位置,人们应该能够简单地订阅它。