/scala-geocode

Google geocode api client written on Scala

Primary LanguageScala

Geocode Build Status

Google geocode api client written in Scala

Supports

  • Getting geocode responses for a gps coordinates

Example

      val geocode = new Geocode()
      geocode ? Location(51.498685, -0.12967) match {
            case Right(results) => results.foreach(r => println(r.formatted_address))
            case Left(error) => println(error)
      }

//      4B Deans Yd, Westminster, London, Greater London SW1P 3NP, UK
//      Westminster Abbey (Stop W), Westminster, City of Westminster, London SW1P, UK
//      Westminster, Westminster Abbey (S-bound), Westminster, City of Westminster, London SW1P, UK
//      Westminster, Westminster Abbey (Stop X), Westminster, City of Westminster, London SW1P, UK
//      Westminster Abbey (R), Westminster, City of Westminster, London SW1H, UK
//      Westminster, City of Westminster, London SW1P 3NY, UK
//      London, Greater London SW1P, UK
//      Westminster, London, UK
//      City of Westminster, Greater London, UK
//      London, UK
//      London, UK
//      Greater London, UK
//      England, UK
//      United Kingdom

Setup

  1. Add this resolver to your build file:
resolvers += "TNM" at "http://nexus.thenewmotion.com/content/groups/public"
  1. Add dependency to your build file: "com.thenewmotion" %% "geocode" % "2.1.1"

Contributors

Georgii Leontiev
Maxim Fedorov
Reinier Lamers
Yaroslav Klymko