geo-resolver-0.1.0.1: Performs geo location lookups and parses the results

Copyright(c) 2015, Markenwerk, Jan Greve
LicenseMIT
Maintainerjg@markenwerk.net
Safe HaskellNone
LanguageHaskell2010

Network.Google.GeoResolver.Requester

Contents

Description

 

Synopsis

Data Types

data GoogleRequest Source

A Type abstracting possible API request argument combinations.

For convenience, the IsString instance generates a encoding request and assumes the String is the address.

data GoogleComponents Source

Abstraction for google's components

Constructors

Components [String] 

data GoogleLocationTypes Source

Abstraction for google's location types

Constructors

LocationTypes [String] 

data GoogleResultTypes Source

Abstraction for google's result types

Constructors

ResultTypes [String] 

Request methods

requestEncode :: Maybe Text -> Text -> IO ByteString Source

Convenience function to request a given address.

requestDecode :: Maybe Text -> (Double, Double) -> IO ByteString Source

Convenience function to request a given location.

requestRaw :: [(Text, Text)] -> IO ByteString Source

Constructs the URI to be used for the web service invocation from the input. Sends a request and returns the Lazy ByteString from IO.