esprit-fusiontables

Better Fusiontables

License

License

GroupId

GroupId

it.espr
ArtifactId

ArtifactId

esprit-fusiontables
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

esprit-fusiontables
Better Fusiontables
Project URL

Project URL

http://github.com/espr-it/fusiontables
Source Code Management

Source Code Management

http://github.com/espr-it/fusiontables/tree/master

Download esprit-fusiontables

How to add to project

<!-- https://jarcasting.com/artifacts/it.espr/esprit-fusiontables/ -->
<dependency>
    <groupId>it.espr</groupId>
    <artifactId>esprit-fusiontables</artifactId>
    <version>0.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/it.espr/esprit-fusiontables/
implementation 'it.espr:esprit-fusiontables:0.0.3'
// https://jarcasting.com/artifacts/it.espr/esprit-fusiontables/
implementation ("it.espr:esprit-fusiontables:0.0.3")
'it.espr:esprit-fusiontables:jar:0.0.3'
<dependency org="it.espr" name="esprit-fusiontables" rev="0.0.3">
  <artifact name="esprit-fusiontables" type="jar" />
</dependency>
@Grapes(
@Grab(group='it.espr', module='esprit-fusiontables', version='0.0.3')
)
libraryDependencies += "it.espr" % "esprit-fusiontables" % "0.0.3"
[it.espr/esprit-fusiontables "0.0.3"]

Dependencies

compile (5)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.5
com.google.api-client : google-api-client jar 1.22.0
com.google.api.client : google-api-client-json jar 1.2.3-alpha
com.google.apis : google-api-services-fusiontables jar v2-rev15-1.22.0
com.fasterxml.jackson.core : jackson-databind jar 2.8.2

test (5)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-all jar 1.10.19
org.easytesting : fest-assert-core jar 2.0M10
org.slf4j : slf4j-log4j12 jar 1.7.5
log4j : log4j jar 1.2.17

Project Modules

There are no modules declared in this project.

Fusiontables library for Java Build Status

The package tries to simplify access to your fusion tables data using Table objects. It allows to query, save and delete data in fusion table while supporting batching operation for insertion, mapping POJO to tables and storing Json objects as a texts into fusion table fields.

I'm using this library for accessing fusion tables from my app engine projects but it whouldn't be limited to this scenario only - feel free to submit pull requests if you use it in some other way, thanks!

How to setup your Fusion table

The setup for using Fusiontables from java client is not really user friendly and consists of following steps (I found all of this when googling and it's possible to do this in much more simple way I'm not aware of)

  1. Log into your Google cloud manager and generate service account key under your project at https://console.cloud.google.com/apis/credentials (you can use 'App Engine default service account') - save it as p12 (JSON could work too but I haven't tested it)
  2. Still in Google cloud manager, enable Fusiontable API https://console.cloud.google.com/apis/api/fusiontables-json.googleapis.com/overview
  3. Create your fusion table by logging to google drive and hitting new button, then selecting 'More' and choosing Google Fusion table (or you can visit https://www.google.com/fusiontables/DataSource?docid=1TfabMnZPa3APgUkFDZs_UN10tOnL_wp1dHr3tVHx and clone it into your google drive from there)
  4. Hit Share button and add app engine user (project-name@appspot.gserviceaccount.com) to your fusion table sharing option with full write/read access

How to test it

Clone the project, run 'mvn eclipse:eclipse' and import into eclipse. In 'test/integration' you will find three different scenarios and you just need to update Configuration.java with .p12 key file and you service account id and then set the 'id' of your fusion table in Table.java file.

Versions

Version
0.0.3
0.0.1