postcodes-0.1.1: A library that gets postcode information from the uk-postcodes.com

Safe HaskellNone

Data.Locations.Postcodes

Synopsis

Documentation

getPostcodeSource

Arguments

:: String

The postcode

-> IO (Maybe Postcode)

Either Just a postcode or Nothing if it could not be found

Return a Postcode for the postcode string. This uses the network

getPostcodesInRangeSource

Arguments

:: String

The postcode to be the centre of the search

-> Float

The radius to search in miles

-> IO (Maybe [(Float, Postcode)])

Either Just a list of tuples of distance and postcode or Nothing if the given postcode could not be found

Find all the postcodes within a given range and return a postcode and the distance for each. This uses the network

getPostcodeAtLocationSource

Arguments

:: Float

Latitude

-> Float

Longitude

-> IO (Maybe Postcode)

Either Just the postcode at the give location or Nothing if there is not a postcode there

Find the postcode at the given latitude and longitude