Using Google Maps with Java on a Desktop Application - java

I want to use Google Maps on my java based application.
My application would overlay images on maps based on latitude and longitude and change position of these images with time. The time interval will be very short so it needs to be efficient.
Currently I can find following solution, but none of these works :
1) Using Qt WebKit through Qt Jambi : This will just open Google Maps in browser over my application, I would not have control of overlaying images on top of the Map, according to the lat/long.
2) Using Google Maps Image API : This would open image, but I would not be able to translate the location in lat/long into coordinates in image, also as the position of images are changing I will need zoom-in and zoom out feature, which will be unavailable here.
Is there an exiting solution which fits my need?
Thanks!

Related

Osmdroid as alternative to Mapbox

I am currently using MapBox SDK to display raster map tiles within an Java/Kotlin implemented Android app. However, I want to replace the Mapbox SDK with an alternative primarily because, as far as I understand, when I use MapBox SDK in my app even just to display other third party map tiles, it will result in some location information about my user's being intermittently sent to Mapbox. I am now considering osmdroid and was looking for some input on whether this will be an appropriate alternative. I am using Here maps as the primary source of raster map tiles [though I also have limited coverage map tile server (generated from OSM) of my own which I do not currently use but might as an alternative if needed]. Within the app, the functionality that I want to implement is relatively simple:
(1) Display map tiles based on standard X,Y,Z system
(2) Display tap-able icons overlaid at certain (GPS) locations on the displayed maps
(3) Allow user to zoom in-out or scroll across the displayed map
However, one absolute key requirement is that none of my user location information will be shared as part of the terms of usage for the SDK.
Is Osmdroid SDK a possible suitable alternative to mapbox SDK for this ?
Thanks for any comments.
Since 2017, I've been using the OsmDroid SDK quite frequently. The SDK is primarily used to create my situational awareness map application and to manage my offline GeoPackage raster and vector map collections via OsmDroid GeoPackage API support, though the core GeoPackage API allows me to use online GeoPackage-based map providers.
To respond to your inquiry: No user data, including location, is stored by the OsmDroid APIs. It is merely an SDK for manipulating its MapView (which extends from Android's ViewGroup) and supports loading tile sources from online/offline map databases.
It will be our responsibility to implement our own location positioning codes so that any user position, in addition to other map objects you want to include in the map, can be drawn on the map.
Unlike the Google Maps SDK, no API key is required for the OsmDroid SDK. In fact, it attempts to emulate what the Google Maps SDK can do while remaining royalty-free and open-source license compliant. It primarily serves OpenStreetMap purposes. To improve the OsmDroid experience, a free OsmBonusPack SDK simplifies application use-cases.
https://github.com/MKergall/osmbonuspack
Except that you'll need a TOKEN/API key from the map database provider of your choice for any non-free map databases you want to use as base maps or tile sources. This requires you to code in the necessary parameters for the tile module provider to work.
https://github.com/osmdroid/osmdroid/wiki/Map-Sources

Indoor map with route directions in android

I am trying to create an indoor map navigation in android studio for my thesis project in school and I'd like to know some basics or where should I start.
I'm also planning to use images as a map with 8 floors in it unless if there's anything simpler way to do it
You can use the Navigine SDK for this task, it allows indoor navigation through WiFi, BLE, WiFi-RTT, Eddystone.
You just create the map on web client using your floor images, set there transmitters, download mobile app and will see the navigation.

Is there a way to show a google maps or open street map with image overlay on it on android NOT using webview?

Currently I have a map running on the web with Open Street Map and Leaflet Library. This map has an image overlay on it with custom markers (Image Example). So, I am looking for a way to show the same map or another one on android but NOT using a web view (maybe using Google Maps Api or OSM api). It is possible. Is there any library that can achieve this ?
I really would appreciate your reply guys.
Thanks
Have you tried osmdroid library? https://github.com/osmdroid/osmdroid

Getting location of a direction of current location in Android

I want to implement a function that calculates locations' list (longitudes and latitudes) through a direction of my phone. The result can be a rectengular shape which is pointing the corners as locations.
First how can i find the device current direction which means which direction the back camera points ?
Then how can i obtain a list of location information through this direction ?
Thank you
From the documentation of Google Maps Android API, the location data available to an Android device includes the current location of the device pinpointed using a combination of technologies - the direction and method of movement, and whether the device has moved across a predefined geographical boundary, or geofence.
This is the 3 options that you can do with your app.
Using My Location layer that provides a simple way to display the device's location on the map. It does not provide data.
Using Google Play services Location API is
recommended for all programmatic requests for location data.
And using the LocationSource
interface allows you to provide a custom location provider.
By using this, you can also get the different information about the
coordinates that you get
For more information, check this tutorial:
Google Map Tutorial in Android Studio: How to get current location in Android Google Map
Google Map Tutorial in Android Studio

image map in Java

I've seen some examples on how to make image maps in Java, but they are all a PITA since you have to code all the coordinates by hand. Are there any tools out there than I can generate the coordinates for my image map via UI for my Java application?

Categories