Offline map navigation Java or Python - java

So I am doing this project for my motorbike.
Long story short I need a way where I can download maps locally and navigate them.
I have a GPS module that can feed in the current data, but no internet connectivity. I am planning to run it on a PI zero W. So I am aware of Open Street Maps, but I can't find an open source / free routing library. Perhaps I am just missing something. Any help is appreciated.

Related

Image Recognition using OpenCv and android

I want to work on making an android app by integrating OpenCV with android Studio. I have a set of 2D hardcopy card images that i want to save as templates with in the app. Then, using the app, when i place my camera on any of the cards, the app should search the directory which contain the templates and look for match and provide feedback if a match is found. If anyone can guide on how to achieve this, it will be highly appreciated.
Also, if not OpenCV, then which SDK or tool should be preferred ?
The question is a general one, so the answer will be general as well, and will make assumptions about what you'd like to accomplish with your application.
Android Studio with OpenCV is probably a reasonable stack to use.
Presuming the library has more than a trivial number of images, you'll probably want to extract matching information for each image in your library in an offline process (on your code-development machine). So for instance, you would configure your development machine with a SQLite database driver and OpenCV, construct a program that extracts feature points and saves those to your a SQLite database. That file can then be loaded into the Android APK assets, and it would be ready upon the application's first use. The application would take frames from the camera and compare those with each item in the database, looking for matches.

How to use google cloud storage with ADT?

Total beginner here.... :(
I am using Eclipse with ADT and Google App Engine plug in.
I have built my "awesome" android app, but now I want to save some of the data the app produces onto a cloud service so I can share it between my users.
So I am trying to do this with google services. I have incorporated in my project both Cloud Storage API and Google Cloud Datastore API, both using the GDT plug in, but that's as far as I can get :((((
I know I am asking a lot, but I don't even know if it is a lot, it might be a few lines of code, at least that's what I think.
So now I need a way, through some Google API to connect to a database that "belongs" to me, and store 5 numbers there from each of my users, and share other user's numbers with each other...
Can someone take me by the hand and tell me what I need to import and what not...?
I have spend hours reading all documentation about these APIs I could find and I ended up going in circles :( either trying commands that cannot be resolved, like DataStoreService(), or simply not even finding where do I put my info to get to "my" database....
Thank you all.

Google Drives SDK and powerpoint

I am currently developing a small android app using the google drive SDK/google doc's embedded player which will play through power point files in a slide-show manner. Since there's no direct way I can tell when one powerpoint ends and another begins using the SDK, I was wondering if there was any way for me to retrieve the number of slides from a power point. With the amount of slides I'll be attempting to use the interval between slide changes to calculate the time taken for each powerpoint to play and then using that I can switch through files. I know .pptx files carry the amount of slides in it's metadata (not so sure about .ppt), but I'm not sure how to go on reading it. I've looked at google drive SDK's part to read metadata, but it seems rather limited to what you can actually read. I've looked at ApachePOI but it doesn't seem it's android compatible. Could anyone point me in the right direction with this?
Thanks :).
Sorry, this is not possible using the Google Drive SDK. You could easily download the pptx, unzip it (it is just zipped XML) and extract the required metadata.

Android Project - Required Tools

I'm in the process of starting a new Android project that will:
Display a Google map
Track and record users movements
Display the route on the map
Show local points on interest on the map
My question is what extra tools will I need to accomplish this? I can already get a basic Google Map working with zoom controls and place overlays etc. but my main concern is how I will track the users movements. I was thinking there maybe some sort of fleet management API but I really have no idea.
A link to some sort of tutorial would be great or even just to possible tools.
Use the class http://developer.android.com/reference/android/location/LocationManager.html to obtain the device geographical location
A Caltrans planning grant went towards creating an Android app called CycleTracks that does all of your bulleted items except the last one about points of interest.
You can download the source code here: http://www.sfcta.org/downloads/cycletracks/CycleTracks-android.zip
I haven't looked at the license to see how free you are to use it as a starting point, but I have to imagine it might be helpful just to be able to look at it even if the license is restrictive.
You can read more about it at http://www.sfcta.org/content/view/666/375.
You don't need any extra tools. Use the GPS or radio cells to get the location of the phone. This thread explains how you can get the location:
How do I get the current GPS location programmatically in Android?
If you want to Track the users movement you'll need to run a webservice on a server and have the app report the location of a user at regular intervals.
Be careful though, if you don't tell the user this is what you are doing, and provide an opt out, you could be pulled from the market pretty quickly.
Be sure you aren't recording any sensitive information as well. Usually position, phone type and OS type is allowed but much more could get you in trouble.

create an application which can track the location using open street maps

I am planning to create an application which can track the location of a certain person using open street maps. But I don't know where to start.
Have a look at the sourcecode of osmdroid, an opensource reimplementation of google's maps app using openstreetmap. They even provide a jar you can use! Should get you up to speed in no time. And possibly the official documentation on Location & Maps...

Categories