VE Team 的个人资料Virtual Earth / Live Map...照片日志列表更多 ![]() | 帮助 |
|
8月10日 Subscribe to an RSS feed of your neighborhood!Thanks to a bunch of prods and some tech support from Mikel Maron, I've added the ability to grab an RSS feed to the Collection browsing mashup. The concept is really sweet! I hope to improve my implementation to live up to all the potential sweetness, but even the current state of V1 it's very useful and a lot of fun to play with. You can generate an RSS feed for any region on Earth and add it to your favorite reader to be continually kept up to date on changes in the area. For instance, you could create a Feed that covered your neighborhood and was filtered by the word 'Tennis' to be alerted whenever some added a Tennis related item to the Virtual Earth. mashers can also use the feed and its simple REST interface to build streams of geographic content into their apps. more on that in a moment. First, get started plucking your first feed:
The feed will contain links to virtual earth to open the original collection that the item was created in. Since it is a GeoRSS feed, you can view in standard readers as well as clients that understand the Geo markup. Here is a sample feed of restaurants near Hyde Park that Mikel is parsing with his Mapufacture library and displaying on a map from google.
Developers can do some interesting stuff with the feed, using it like a geo data pump. The REST interface will let you query dynamically based on geography and keyword. Here is a query for items related to 'library' around the state of Massachusetts:
where X1 and Y1 are the Northwest corner and X2,Y2 are the Southeast corner of a query rectangle. 'keywords' is the optionl text filter of course, and 'count' is the max number of items to return. The response is an easy to parse XML document formatted where each item looks like this:
<item>
<title>
<![CDATA[ beverly farms branch library ]]>
</title>
<description>
<![CDATA[ the addition was completed two years ago<br>From <a href='http://local.live.com/?v=2&cid=AD6AD80FDD2D4194!105'>676R hale street, beverly farms</a> at Virtual Earth ]]>
</description>
<link>
<![CDATA[ http://local.live.com/?v=2&cid=AD6AD80FDD2D4194!105 ]]>
</link>
<georss:point>42.56299 -70.81363</georss:point>
</item>
email me your thoughts on where we could take this and suggestions to improve its usefulness. here is a brief FAQ:
1. Why doesn't my reader like the feed? Pluck, IE7 and various parsing libraries I have tried seem to like the feed just fine. Live.com and Google.com each seem to have troubles though. I can only imagine this means I have some bad formatting in there. I'll try to diagnose and fix this, but if the feed doesn't work in your reader of choice you'll have to either trya new reader, or try again in a few days to see if I have fixed my bug. I'll post details here if I do.
2. How do I get my own entries in the Feed? Easy! just create a Collection at Virtual Earth, mark it as 'public', then email yourself the URL fo rthe collection and view it. This weird step of viewing your own collection is needed as my indexer is only considering Collections that have been viewed in this way. If you have no idea what a Collection is, here is a brief tutorial that will guide you through making a Collection.
3. I created a Colection and made it public and all that, but it still doesn't show in the feed. I run the indexer once or twice a day and it grabs a random set of new public collections. I fyours didn't make it in there, email me (stevelom at microsoft d com) the URL for your collection and I'll force it in the index.
enjoy!
评论 (23)
VE Team
在此页禁用了评论功能。
引用通告 (8)此日志的引用通告 URL 是: http://virtualearth.spaces.live.com/blog/cns!2BBC66E99FDCDB98!3554.trak 引用此项的网络日志
|
|
|