Google Maps view in Java application - java

My goal is to have a GPS Track displayed in a local Java Application with Google Maps. And I am pretty sure I am not the first one to try this, so there should be a way.
The Problem is that I found the Google Maps Engine API (Deprecated) which is stated as deprecated. But I didn't find any replacement. Only this page, which then links to the deprecated version again.
I also did some search, but all results seem to point to future deprecated API, and also are pretty old.
Can anyone point me a version or tooling that I will be able to still use in 2016? Or does anyone know an alternative to using Google Maps for displaying GPS tracks in a local java app.
Thanks

In case anyone has the same problem:
I used mapsforge https://github.com/mapsforge/mapsforge

JxMaps library provides possibility to add Google Maps to java swing application. Using this library you can draw GPS track either as polyline or set of markers on the map.

Related

My google places SDK doesn't seem to work after trying multiple options. What could the issue be?

I'm using the google places SDk which I'm aware has deprecated. I'm using the AutoComplete functionality but constantly get errors that state there is a network error and the resolution is null. Is this because of the deprecation? Does it make a difference if my API Key is in my Manifest or can I store it anywhere I want (Ignore security purposes)?
You cannot use the deprecated Places SDK anymore. You'll need to migrate to the new Places SDK for Android if you want to continue using the Places service; there's no way you can get the deprecated SDK to work by this time.
Check out What are the consequences of not migrating to the new released google places sdk
Note that you'll also need to migrate to AndroidX if you haven't done so yet either.
Hope this helps!

Android Maps API version 1 to version 2 migrations

Background:
I've inherited someone else's problem and am trying to get an app up and running. Multiple developers have ditched the project and now its my turn. I'm an iOS developer by trade but I have a few simple android project completed.
The problem app is a native android originally built with API level 7 and is heavily built around google maps api version 1. I don't have access to the original keys so I appear to be forced into upgrading to google maps version 2.
I have already set up a new Activity and am beyond the basic tutorials of getting a functioning map. No problems there, but I'm blocked on items like GeoPoint and don't seem to be able to find much information on its replacement.
My question is this:
Is there a migration path to move from API version 1 to API version 2 or do I have to re-code the whole map component? GeoPoints, custom pins, and overlays included?
The sad answer is that most of the objects of Google Map API V1 are replaced with new Objects in Google Map API V2.
For example instead of using GeoPoints you are going to use Latlng points. Overlays are gone as well and replaced with Polylines and Polygones.
Take a look at this answer I gave here:
Convert Android App that uses maps API V1 to Maps Android API V2
And have a look at this blog post I wrote that will get you started with Google Map API V2 implementation in your app:
Google Map API V2
So as you can understand most of the code should be rewritten to fit Google Map API V2.

Using android geocoding in a regular java project

I have done some Google research off and on for a week or so on the subject, And I have not found anything conclusive. I am just wondering if it is possible to use the geocoding found in android on a regular java project?
I have been looking and all the geocoding i have seen for regular java seems to have some restrictions on its use, and I do not remember reading anything of the sort with the android geocoder so I am trying to use this instead of others. However if anyone does have some good suggests for a geocoder for a java program please let me know.
thanks,
bob
P.S I would rather not use the google api because it only wants it to be displayed on a map which I am not doing. I am trying to store them in a database. And the other google option has a daily limit on the amount of calls to there api so again as mentioned this is a restriction.
as mentioned on the google api page it states "Note: the Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions."
So this is not a option for me.
you can always use Google's geocoding API based on HTTP requests.
https://developers.google.com/maps/documentation/geocoding/

Get GPS Coordinates : Android

I'm new to Android development. As a class assignment another student and myself are making an android app that will utilize GPS coordinates.
Is there anywhere that would be a good place for me to start with GPS feature on Android, or that has a good example of how to use GPS? I don't want anything deep, literally just how to retrieve and use current GPS coordinates. I'd like to start simple and build up from there.
As mentioned in one of the other answers, Vogella's article here is very good for learning the basics of using GPS on Android.
The Android Dev guides are also particularly good for this area - obviously there are issues with battery drain associated with using location listeners. More in-depth information on what you can do to combat those issues are here, as when you get to grips with how to use GPS, you'll want to use it efficiently!
HTH
Well mostly GPS coordinates are used along with Google Maps. So, as a starter what you can do is just get your own coordinates and put a marker on your location on the map.
This article and this one describes everything about using google maps with android.
Hope this helps.
http://webdesignergeeks.com/mobile/android/geting-current-location-in-android-application-using-gps/
this will be a good start. it explains how to get GPS coordinates as text format. Without dealing with google maps or anything complex.

Java & Google Maps

Is it possible to render google maps in swing or applet?
I know i can also use NASA World Wind but it seems to much overkill for a simple app.
There is JXMapViewer component in SwingX project. You can write new TileProviderInfo,TileFactory to pull images from Google maps but using JXMapViewer to pull maps from Google was illegal when I used it(2008). Google was usually changing Map URL format so your program can be broken unexpectedly if this is still illegal.
in My last project we have used JXMapViewer and Microsoft Visual Earth instead of Google maps.
You can use JxMaps to render Google Maps in your Swing application. It provides Java API that covers most of Google Maps JavaScript API functionality.

Categories

Resources