GeoRSS Simple Namespace Reference
The GeoRSS Simple namespace enables geographic tagging of RSS feeds and items, allowing publishers to associate location information with their content.
| Namespace URI | http://www.georss.org/georss |
|---|---|
| Specification | GeoRSS Specification |
| Prefix | <georss:*> |
| Available in | RSS, Atom, RDF |
| Property | georss |
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 ItemOrFeed<TStrict extends boolean = false> = {
point?: Point<TStrict>
line?: Line<TStrict>
polygon?: Polygon<TStrict>
box?: Box<TStrict>
featureTypeTag?: string
relationshipTag?: string
featureName?: string
elev?: number
floor?: number
radius?: number
}
}Related
- Parsing Namespaces - How namespace parsing works