p

com.koddi

geocoder

package geocoder

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class AbstractComponent extends AnyRef
  2. case class AddressComponent (longName: String, shortName: String, types: Seq[String]) extends Product with Serializable

    Contains meta data about the address.

    Contains meta data about the address.

    AddressComponents can contain any part of the address field. This includes street, city, state, etc.. the field type can be determined by the types Seq.

  3. case class AdministrativeAreaComponent (value: String) extends AbstractComponent with Product with Serializable

    Serializes to "administrative_area=value"

  4. class AsyncGeocoder extends AnyRef

    Use the geocoding API with asynchonous requests

    Use the geocoding API with asynchonous requests

    Simple composition class that executes the Geocoder methods within and implicit scala.concurrent.ExecutionContext. Exceptions are automatically bubbled up to the onFailure events. All scala.concurrent.Future[Result] contain the return values from the wrapper com.koddi.geocoder.Geocoder.

  5. case class Component (key: String, value: String) extends AbstractComponent with Product with Serializable
  6. case class CountryComponent (value: String) extends AbstractComponent with Product with Serializable

    Serializes to "country=value"

  7. case class FailedResponseException (status: String, message: String) extends Exception with Product with Serializable

    Thrown when the API returns a generic error

  8. class Geocoder extends AnyRef

    Converts strings and addresses to latitude/longitude values.

    Converts strings and addresses to latitude/longitude values.

    Latitude/Longitude values can be queried with a formatted address. The Google Maps API is called using the values from the address and a com.koddi.geocoder.Result instance is returned.

  9. case class Geometry (location: Location, locationType: String, viewport: GeometryBounds, bounds: Option[GeometryBounds]) extends Product with Serializable

    High level geometry data related to the queried location.

  10. case class GeometryBounds (northeast: Location, southwest: Location) extends Product with Serializable

    Bounding points the represent opposite edges of a square.

    Bounding points the represent opposite edges of a square.

    northeast

    the upper right coordinate of the square

    southwest

    the lower left coordinate of the square

  11. case class InvalidRequestException (message: String) extends Exception with Product with Serializable

    Thrown when the API returns INVALID_REQUEST status.

    Thrown when the API returns INVALID_REQUEST status. Will contain the applicable error message.

  12. class InvalidResponseException extends Exception
  13. case class LocalityComponent (value: String) extends AbstractComponent with Product with Serializable

    Serializes to "locality=value"

  14. case class Location (latitude: Double, longitude: Double) extends Product with Serializable

    Simple wrapper for storing latitude and longitude values

    Simple wrapper for storing latitude and longitude values

    Internally the toString() method is overriden so it can write the latitude/longitude values as a coordinate string.

  15. case class OverQueryLimitException (message: String) extends Exception with Product with Serializable

    Thrown when the API returns OVER_QUERY_LIMIT status.

    Thrown when the API returns OVER_QUERY_LIMIT status. Will contain the applicable error message.

  16. case class Parameters (language: Option[String] = None, region: Option[String] = None, bounds: Option[GeometryBounds] = None, resultType: Option[Seq[String]] = None, locationType: Option[Seq[String]] = None) extends Product with Serializable
  17. case class PostalCodeComponent (value: String) extends AbstractComponent with Product with Serializable

    Serializes to "postal_code=value"

  18. case class Response (status: String, results: Seq[Result], errorMessage: Option[String]) extends Product with Serializable

    The Google Maps response wrapper

    The Google Maps response wrapper

    This entity represents the JSON response returned from the Google Maps API.

  19. class ResponseParser extends AnyRef

    Parses Google Maps XML responses and converts them into com.koddi.geocoder.Response.

    Parses Google Maps XML responses and converts them into com.koddi.geocoder.Response.

    See also

    https://developers.google.com/maps/documentation/geocoding/intro#Results

  20. case class ResponseParsingException (e: Exception) extends Exception with Product with Serializable

    Thrown when the response contains an invalid payload that cannot be parsed by the XML reader

  21. case class Result (placeId: String, formattedAddress: String, geometry: Geometry, addressComponents: Seq[AddressComponent], postcodeLocalities: Option[Seq[String]], partialMatch: Boolean, types: Seq[String]) extends Product with Serializable

    A collection of location and geometry data.

  22. case class RouteComponent (value: String) extends AbstractComponent with Product with Serializable

    Serializes to "route=value"

Value Members

  1. object AddressComponent extends Serializable

    Provides constants for com.koddi.geocoder.AddressComponent

  2. object Component extends Serializable
  3. object Geocoder

    Factory for com.koddi.geocoder.Geocoder instances.

  4. object Location extends Serializable

    Provides constants related to com.koddi.geocoder.Location

  5. object Response extends Serializable

Ungrouped