|
One primary goal of Mapufacture is to provide a large repository of geographic data sources. This includes GeoRSS feeds, KML, Shapefiles, Microformat pages, and triple-tagged feeds and pages. Having your data sources listed in Mapufacture allows users to find and convert your feeds to any of the other supported formats, add your sources to their maps, and use your geographic data in a variety of ways. There are several ways to get your services listed in Mapufacture. Any user can use the new feeds form to enter a URL of a geographic data source. However, this is only useful for single feeds and is difficult to integrate into your service to provide automatic detection and indexing. In order to make your services easily indexed in Mapufacture, we provide several ways to notify Mapufacture of your services.
POST with XMLMapufacture provides REST-based interface. What this means is that you can submit data to Mapufacture using an HTTP POST with simple XML for the feed URL in the body to add data sources. An example of the XML is: <url>http://shapewiki.com/shapes.rss</url>
One way to test this would be to use the following curl command: curl -H 'Content-Type: application/xml' -i -X POST
-d "<url>http://shapewiki.com/shapes.rss</url>" http://mapufacture.com/feedsWeblog PingWhen adding a new data source to Mapufacture, at the minimum you must supply a URL. This URL can be a new data source that Mapufacture didn't know about, or it can be one with new data. Mapufacture will add the data source to its index if it is new, determine the type of data (KML, RSS, HTML, Shapefile) and then index the contents of the source. The XML-RPC interface is primarily supplied to support weblogs. If you have a blog, then just enter the Mapufacture ping URL in your Update Services (under "Options"->"Writing" in WordPress) to notify Mapufacture of your new geoblog or updates when you write about new locations. http://mapufacture.com/ping/api![]() XML-RPC message<?xml version="1.0"?> <methodCall> <methodName>weblogUpdates.ping</methodName> <params> <param> <value>YOUR WEBLOG NAME HERE</value> </param> <param> <value>http://www.YOURWEBLOGURL.com/</value> </param> </params> </methodCall> |