Geocoding types
There are various structures used to represent different information about the location of addresses:
Position
Represents a simple position with no additional contextual information.
Position {
int Easting,
int Northing,
string GridReference,
double Longitude,
double Latitude
}
This class holds the details of a single point, represented in a variety of formats:
Easting and Northing. These are the distance of the point, in metres, from the Ordanance Survey origin just off the south-west coast of Cornwall.
GridReference. This is the standard Ordanance Survey six-figure grid reference.
Longitude and Latitude. This information can be provided according to a number of different systems - see the accuracy page for more details.
FuzzyPosition
Represents a position that may span a large area.
FuzzyPosition {
string Description,
int Easting,
int Northing,
string GridReference,
double Longitude,
double Latitude,
int StdDev
}
This class holds the details of an area, represented by the location of a central point in a variety of formats along with an indication of the spread of addresses from that central point:
Description. A textual description of the area being represented.
Easting and Northing. These are the distance of the point, in metres, from the Ordanance Survey origin just off the south-west coast of Cornwall.
GridReference. This is the standard Ordanance Survey six-figure grid reference.
Longitude and Latitude. This information can be provided according to a number of different systems - see the accuracy page for more details.
StdDev. The standard-deviation of addresses in the area from the central point, in metres.
DistancesFromPoint
Represents a location and a set of distances from that point to other points.
DistancesFromPoint {
FuzzyPosition Position,
Distance[] Distances
}
This class holds the details of an point, represented by a FuzzyPosition instance, and an array containing distances from
that point to other points:
Position. The location of the main point under consideration.
Distances. An array containing Distance instances representing the distance between the main Position and another location. The items in the array are ordered with the shortest distance first.
Distance
Represents the distance to a point of interest.
Distance {
PointOfInterest PointOfInterest,
double Metres,
double Miles
}
This class holds the details of a point, represented by a PointOfInterest instance, and the distance to that point
in metres and miles:
PointOfInterest. The details of the location that the distance is measured to.
Metres. The distance to the point of interest, in metres.
Miles. The distance to the point of interest, in miles.
PointOfInterest
Contains the details of a point that distances are measured to.
PointOfInterest {
string Title,
Address Address,
string Description,
Position Position,
string Telephone,
string Fax
}
This class holds the details of a point to which distances are measured:
Title. A name for the point.
Address. The address of the point, stored as an Address instance.
Description. A free-text description of the point.
Position. The physical location of the point, stored as a Position instance.
Telephone. A telephone number associated with the point.
Fax. A fax number associated with the point.