We help build better software

Tuesday, October 28, 2014

How to Use Google Geolocation API in JxBrowser 4.x

Together with one of the most powerful browser engines, JxBrowser now carries into your Java application the cool features available via Google API, in particular, the Google Geolocation API. In case you would like to utilize this functionality in your Java app, here is a brief insight into how to enable this feature.

JxBrowser Geolocation

First of all you must enable billing in the Google APIs Console and activate Google Maps Geolocation API, otherwise the API will not work.

You will need a valid API Key as well. The instructions on how to acquire the API Key can be found at http://www.chromium.org/developers/how-tos/api-keys#TOC-Acquiring-Keys

Once Google Maps Geolocation API and billing are enabled, you can provide the keys to JxBrowser Chromium engine via environment variables. Set the environment variables GOOGLE_API_KEY, GOOGLE_DEFAULT_CLIENT_ID and GOOGLE_DEFAULT_CLIENT_SECRET to your "API key", "Client ID" and "Client secret" values respectively. To find out where to get "API key", "Client ID" and "Client secret" see the video instruction at https://www.youtube.com/watch?v=o425vQXpigw

1 comment:

  1. The intuitives on the other hand know their clients, both the employer who pays them, and their product - the sales professional. Salesforce training

    ReplyDelete