A very minimal POI (a city)

From Points of Interest
Revision as of 04:00, 24 November 2011 by Rsingh2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A Very Minimal POI

XML

<poi id="http://www.rajsingh.org/pois/45343489">
	<label>
		<term>Boston</term>
	</label>
	<description>
		<value>Boston is the capital of and largest city in Massachusetts, and is one of the oldest
			cities in the United States. The largest city in New England, Boston is regarded as the
			unofficial "Capital of New England" for its economic and cultural impact on the entire
			New England region. The city proper had a population of 617,594 according to the 2010
			U.S. Census.
		</value>
		<author id="http://en.wikipedia.org" href="http://en.wikipedia.org/wiki/Boston" type="text/plain">
			<value>Wikipedia</value>
		</author>
	</description>
	<category scheme="http://www.usgs.gov/placetypes">
		<value>seat of a first-order administrative division</value>
		<term>city</term>
	</category>
	<link href="http://www.rajsingh.org/pois/45343489.xml" type="text/xml" scheme="http://www.iana.org/assignments/link-relations/link-relations.xml">
		<term>canonical</term>
	</link>
	<link href="http://en.wikipedia.org/wiki/Boston" type="text/html" scheme="http://www.iana.org/assignments/link-relations/link-relations.xml">
		<term>related</term>
	</link>
	<link href="http://www.geonames.org/maps/google_42.358_-71.06.html" type="text/html" scheme="http://www.iana.org/assignments/link-relations/link-relations.xml">
		<term>related</term>
	</link>
	<location>
		<point>
			<term>centroid</term>
			<Point srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
				<posList>42.358 -71.06</posList>
			</Point>
		</point>
	</location>
</poi>

JSON

{
    "id":"http:\/\/www.rajsingh.org\/pois\/45343489",
    "label":
    {
        "term":"Boston"
    },
    "description":
    {
        "value":"Boston is the capital of and largest city in Massachusetts,
         and is one of the oldest\n\t\t\tcities in the United States. The largest city in New England,
         Boston is regarded as the\n\t\t\tunofficial \"Capital of New England\" for its economic and cultural impact on the entire\n\t\t\tNew England region. The city proper had a population of 617,
        594 according to the 2010\n\t\t\tU.S. Census.",
        "author":
        {
            "id":"http:\/\/en.wikipedia.org",
            "href":"http:\/\/en.wikipedia.org\/wiki\/Boston",
            "type":"text\/plain",
            "value":"Wikipedia"
        }
    },
    "category":
    {
        "value":"seat of a first-order administrative division",
        "term":"city",
        "scheme":"http:\/\/www.usgs.gov\/placetypes"
    },
    "link":
    [
        {
            "href":"http:\/\/www.rajsingh.org\/pois\/45343489.xml",
            "type":"text\/xml",
            "term":"canonical",
            "scheme":"http:\/\/www.iana.org\/assignments\/link-relations\/link-relations.xml"
        },
        {
            "href":"http:\/\/en.wikipedia.org\/wiki\/Boston",
            "type":"text\/html",
            "term":"related",
            "scheme":"http:\/\/www.iana.org\/assignments\/link-relations\/link-relations.xml"
        },
        {
            "href":"http:\/\/www.geonames.org\/maps\/google_42.358_-71.06.html",
            "type":"text\/html",
            "term":"related",
            "scheme":"http:\/\/www.iana.org\/assignments\/link-relations\/link-relations.xml"
        }
    ],
    "location":
    {
        "point":
        {
            "term":"centroid",
            "Point":
            {
                "srsName":"http:\/\/www.opengis.net\/def\/crs\/EPSG\/0\/4326",
                "posList":"42.358 -71.06"
            }
        }
    }
}