Search code examples
javagoogle-mapsgoogle-maps-engine

creating an engine object for Google maps engine in java


I'm following this, but I'm having problems with creating the engine object (as described by the Java section of the code). I have 3 import lines that cant be resolved and I cant find where to get the files. i am still a novice coder so this is appreciated.


Solution

  • See here for the java library and how you can import it

    Direct download link for a .zip file

    For maven add to pom.xml:

    <project>
      <dependencies>
        <dependency>
          <groupId>com.google.apis</groupId>
          <artifactId>google-api-services-mapsengine</artifactId>
          <version>v1-rev64-1.20.0</version>
        </dependency>
      </dependencies>
    </project>
    

    for gradle:

    repositories {
        mavenCentral()
    }
    
    dependencies {
        compile 'com.google.apis:google-api-services-mapsengine:v1-rev64-1.20.0'
    }
    

    By the way, Google Maps Engine API will stop working after jan 29th, 2016, so don't waste too much time getting used to it ;-)