Skip to content

Instantly share code, notes, and snippets.

@levinotik
Created July 9, 2013 03:42
Show Gist options
  • Save levinotik/5954526 to your computer and use it in GitHub Desktop.
Save levinotik/5954526 to your computer and use it in GitHub Desktop.
case class AddressComponent(long_name: String, short_name: String, types: List[String])
case class Location(lat: Double, lng: Double)
case class Bounds(northeast: Location, southwest: Location)
case class Viewport(northeast: Location, southwest: Location)
case class Geometry(bounds: Bounds, location: Location, location_type: String, viewport: Viewport)
case class Result(address_components: List[AddressComponent], formatted_address: String, geometry: Geometry, types: List[String])
case class GoogleGeocodeResult(results: List[Result], status: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment