Skip to content

GeoRSS Simple Namespace Reference

The GeoRSS Simple namespace enables geographic tagging of RSS, Atom, and RDF feeds and items, allowing publishers to associate location information with their content.

Namespace URIhttp://www.georss.org/georss
SpecificationGeoRSS Simple (Original, Web Archive)
OGC GeoRSS Encoding Standard (OGC)
Prefix<georss:*>
Available inRSS, Atom, RDF
Propertygeorss

Types

INFO

For details on type parameters (TStrict) and Requirable<T> markers, see TypeScript Reference.

ts
export namespace GeoRssNs {
  export type Point<TStrict extends boolean = false> = Strict<
    {
      lat: Requirable<number> // Required in spec
      lng: Requirable<number> // Required in spec
    },
    TStrict
  >

  export type Line<TStrict extends boolean = false> = Strict<
    {
      points: Requirable<Array<Point<TStrict>>> // Required in spec
    },
    TStrict
  >

  export type Polygon<TStrict extends boolean = false> = Strict<
    {
      points: Requirable<Array<Point<TStrict>>> // Required in spec
    },
    TStrict
  >

  export type Box<TStrict extends boolean = false> = Strict<
    {
      lowerCorner: Requirable<Point<TStrict>> // Required in spec
      upperCorner: Requirable<Point<TStrict>> // Required in spec
    },
    TStrict
  >

  export type Circle<TStrict extends boolean = false> = Strict<
    {
      center: Requirable<Point<TStrict>> // Required in spec
      radius: Requirable<number> // Required in spec
    },
    TStrict
  >

  export type ItemOrFeed<TStrict extends boolean = false> = {
    point?: Point<TStrict>
    line?: Line<TStrict>
    polygon?: Polygon<TStrict>
    box?: Box<TStrict>
    circle?: Circle<TStrict>
    featureTypeTag?: string
    relationshipTag?: string
    featureName?: string
    elev?: number
    floor?: number
    radius?: number
  }
}