Google Maps Traffic Navigation (Specific City / Streets) - Java for Android App Development

Hi,
I am trying to achieve a similar app to this: play(dot)google(dot)com/store/apps/details?id=edu.up.ittc.mmda&hl=tl
The app above is for Metro Manila, what I'm trying to achieve is for my local city (Batangas City) where I need to show traffic data on major streets (Highlight the routes with colors)
What APIs should I use and can you provide me a sample code on highlighting a route where the data would be fetched from an online database.

There's a JSON parser for that, but I think it might be mostly larger cities.
Pretty sure you just need the regular maps v2 api, but I just did it as an experiment a while ago and deleted it. I followed a tutorial I found somewhere online for it, if i can dig it up ill post it back in here.

out of ideas said:
There's a JSON parser for that, but I think it might be mostly larger cities.
Pretty sure you just need the regular maps v2 api, but I just did it as an experiment a while ago and deleted it. I followed a tutorial I found somewhere online for it, if i can dig it up ill post it back in here.
Click to expand...
Click to collapse
I got the v2 api already, how do you pull out traffic data on a database and highlight the route with colors? (Red means heavy traffic, yellow means moderate, green means light)

Actually now that I think about the traffic might be super easy, I mighta been thinking about directions.
try this in onCreate
googlemap.setTrafficEnabled(true);
where googlemap is your map(you might be using mMap or something else like that)

out of ideas said:
There's a JSON parser for that, but I think it might be mostly larger cities.
Pretty sure you just need the regular maps v2 api, but I just did it as an experiment a while ago and deleted it. I followed a tutorial I found somewhere online for it, if i can dig it up ill post it back in here.
Click to expand...
Click to collapse
I think its so difficult

Related

New Version of Google Maps (11/16/2007) Available

According to msmobiles.com (see http://msmobiles.com/news.php/6898.html) a new version of Google Maps was released on November 16th. I have DLd it, but haven't yet installed it.
From reading about it, I am not too sure how much has changed. Here is the list the site speaks to:
Real-time traffic conditions
See where the congestion is, and estimate delays in over 30 major US metropolitan areas.
Favorite places and routes
Save time (and avoid sore thumbs) by keeping a list of residential or business locations, and driving routes.
Insta-KB-o-meter
Monitor your data consumption in real-time — just look to the top right portion of your phone screen while using Google Maps.
Enhanced business info
After selecting a particular business, select the "Details" tab for hours of operation, hotel amenities, and more.
BlackBerry support
Just visit www.google.com/gmm on your BlackBerry's web browser, and you're all set to go.
The update can be found here: http://www.google.com/gmm/GoogleMaps.CAB
Enjoy,
-pvs
thanks for the post, wouldn't have known about it otherwise
Yeah, appreciate the heads up!
thanks for the link
Sweet thanks for the headsup! I installed it, and it works better than ever over HSDPA and with my bt gps!
How does this compare to LiveSearch?
sook said:
How does this compare to LiveSearch?
Click to expand...
Click to collapse
I'm not really sure. LiveSearch was the best for a short while (IMO), until Google Maps came out with an executable version. I dropped LS back then, and have not looked back.
Google Maps has many nice features:
1) Look up any of your Contacts for whom you have Address Information
2) Drag-scroll around the map, in map or satellite view
3) Shows real-time traffic conditions
4) Zoom-in and out quickly and easily
5) Provides directions from point A to point B
6) Integration with GPS devices (I haven't used this, but imagine it works ok)
7) Find info on searched-for businesses and easily saving it into Contacts
Some "features" I'd like to see are:
1) Storing data in user-defined locations on the device
2) Management of that data ... selectively deleting old location searches
3) Tilting of the map aka Google Earth
Again, I don't really know how well LiveSearch has developed, so I really can't compare. But maybe you can judge for yourself from what I show above for GM.
-pvs
I'll install it and play around with it, but from what you describe it sounds much the same. LiveSearch also has something called community search that will show you events, movies, and todos in your area, along with traffic and local gas prices.
If I read you correctly, the only thing on your list LiveSearch doesn't have is an easy way to look up contact addresses.
I will report back this weekend, either bumping this one or starting a new thread. I'm quite attached to LS, but if I can find something even better, well, right on.
ER... just in case anyone is having a blond moment like me
the link is CAsE SenSitivE!!
nice find.
has it got rid of those anoying no data warning messages that you had to keep clicking OK to in order to continue?
I was originally using (the previous version of) Google Earth. So far, I like Microsoft Live. The addressing and directions are a LOT more accurate. When I look up addresses, google doesn't even find most of them. Live also does a lot better with one way streets and stuff like that too.
Yes, Live is much, much better, even the diectory is better. Map loading seems a little quicker also.
I wish google showed on the page what version it was up to, so I can know when they've updated it.
I love google maps mobile.
Wow, judging by sook's and Braingears' comments, it sounds like Live Search has come a long way in the past year. Might be time to give it another shot.
And yes, frenchglen, wouldn't it be nice? I guess they have some reason to want to keep the version number a secret, eh?
-pvs

Store Google Maps locally

Hey guys,
wondering if there is a way to store the map data locally?
This way I dont need to always use the wireless connection to get maps on the run, and im sure it would speed up the application too.
Of course i dont expect to store the whole world, just my city. Is there a method to do this?
tia!
sephstyler said:
Hey guys,
wondering if there is a way to store the map data locally?
This way I dont need to always use the wireless connection to get maps on the run, and im sure it would speed up the application too.
Of course i dont expect to store the whole world, just my city. Is there a method to do this?
tia!
Click to expand...
Click to collapse
I made myself a simple workaround - just make screenshots!
gpsVP
This is what the open source project gpsVP is all about.
http://code.google.com/p/gpsvp/
Code is free, and there is ateam working on enhancements.
I have had it running on the X1 for past week. Works great.
I have tried both Google and MS map caching. Not Openstreet yet.
In addition I created my own raster map using Mapcruncher to calibrate coords.
It take s a bit of getting used to, as user documentation is catching up.
You can seed the cache while connected to PC/Landline. Starting at the most zoomed-in level you want, the app will automatically download the higher levels maps.
Hi,
Nowadays I'm testing this one:
http://terracrosser.com/
This program has two parts:
- Mapper.exe
You have to copy it to the PC and it allow to select an area at gooblemaps or yahoomaps and tke zoom levels.
It dowloads the images with the size you have selected and at the end compress them in 1 file (that you have to copy to the PDA​
- Terracrosser itself: for the PDA.
This is not a navigation program. It show in the photo or map image where you are.
The speed is not very fast, development is in progress. Also depends in how many maps have you download and the resolution of them.
Nice program and very, very nice downloader. Very simple.
I use NoniGPSPlot (http://aeguerre.free.fr/Public/PocketPC/NoniGPSPlot/EN/index.php) it's free (I donated though for the extra features & because it's awsome) and there's a free map downloading app that lets you cache maps from google, yahoo, live and openmap, builds the image (or slices to help with memory usage) at whatever zoom level you want. You just then load them into NoniGPSPlot and you've got the ultimate GPS tool, with no data connection required.
I mostly use it to log walks for Geotagging my photographs. I can download maps with footpaths on so I can plan in advance a route, the dog gets a good walk, I get some good shots and can geotag them later in lightroom, and we never get lost!

NASA Skywatch App

Hello
Does anyone know if a NASA Skywatch type application has been or could be made?
Im thinking of this incase anyone isnt firmiliar;
http://spaceflight.nasa.gov/realdata/sightings/SSapplications/Post/JavaSSOP/JavaSSOP.html
I guess the data is all there and the calculations arnt too difficult to figure out the next pass/sighting opportunities, so i assume it could be done.
The idea being that i dont have to get onto the web to find info out and can just load up the app. Always useful when out camping or something and miles from a computer!
Did you manage to find anything for this?
It's something I'd find handy. I'd considered making my own but i'd need a free data source of some sort.
I'd envisage it would:
Use GPS (or manual specification of location)
List passes from now for the next day or two
Allow you to set a calendar appt with reminder for the time of the pass
Display a "sky" circle with lines showing the pass... and so on.
I havnt heard anything im afraid. From what i understand, there is an awful lot of data involved with it which is updated very regularly.
The best bet i suspect would be an app that could interrogate the actual site and display a result, rather than being standalone. But i know nothing about making apps ( i suppose thats something to learn on my next day off though!). Il update this thread if i hear anything!
I wanted the same exact thing... but since nothing was out there... I just embeded a code on a blank webpage, and I use that. This, has a "Sunl map" as well as a "google earth" bg and -live- cloud cover.
www [dot] die [dot] net/earth
Doesnt show/list sat's or ISS... but its sorta cool.
Its online... But might make for fun code to work with, to build something else upon it?

Facebook and weather application

1. When I try to open facebook.com in my Opera web browser, they send me to something that is not the original, but som quasifacebookapplicationwannabe. I want the same page as on my pc.
2. I use the weather application and update it several times a day, but I miss one option that I cannot seem to find (if it exists). That is to save the locations I drive through now on my 5 week vacation. When I update, it figures out my new location and changes to this, but I want to keep more of them. Many of the places I visit don't appear in the Add Location function.
Hope you know what I mean
Thanks!
Hmm... try using m.facebook.com or 0.facebook.com (if you are a Vodafone client).
As for your second issue... I don't really understand what it is. You want your device to remember the places where you've been? If not, then please explain.
svartoksen said:
1. When I try to open facebook.com in my Opera web browser, they send me to something that is not the original, but som quasifacebookapplicationwannabe. I want the same page as on my pc.
2. I use the weather application and update it several times a day, but I miss one option that I cannot seem to find (if it exists). That is to save the locations I drive through now on my 5 week vacation. When I update, it figures out my new location and changes to this, but I want to keep more of them. Many of the places I visit don't appear in the Add Location function.
Hope you know what I mean
Thanks!
Click to expand...
Click to collapse
Open your webpage on the Google homepage, and change it from 'Mobile' to 'Classic', then google Facebook, and all should be well.
And if the place isn't in the Add Location function you can't add it to the Sense weather list. You'll need a 3rd party app or to use the internet to check the weather which isn't quite the same as the Sense Weather interface. You'll just have to keep using My Location I'm afraid.
Search these threads, there is an app here somewhere that will allow you to enter arbitrary weather locations based on (I think I remember) a 4 digit code you need to look up for each spot. Sorry, I looked at it but didn't keep it.
dbh369 said:
Search these threads, there is an app here somewhere that will allow you to enter arbitrary weather locations based on (I think I remember) a 4 digit code you need to look up for each spot. Sorry, I looked at it but didn't keep it.
Click to expand...
Click to collapse
Ah yes you're right, I have seen that before but I couldn't make head nor tail of it. If you go the Accuweather website you can get the codes for individual areas, but I didn't have a clue where to input them.
think this is what you are thinking of. I couldnt get it to find my location as it finds it using 'my location', only the nearest big city, but i didnt try for very long.
You could always make use of footprints to take a snap with location data attached, then i bet theres a way to load the whole lot onto a google earth kmz or something.
samsamuel said:
You could always make use of footprints to take a snap with location data attached, then i bet theres a way to load the whole lot onto a google earth kmz or something.
Click to expand...
Click to collapse
I haven't even the slightest idea how to go about doing that, I think a spot of Googling is in order tomorrow.
I've given the little app a go but it seems to only work for major towns or citys. I can't seem to set my local village or town using the code, it just gives the My Location type 'Can't Connect'.
Kalavere said:
I haven't even the slightest idea how to go about doing that, I think a spot of Googling is in order tomorrow.
I've given the little app a go but it seems to only work for major towns or citys. I can't seem to set my local village or town using the code, it just gives the My Location type 'Can't Connect'.
Click to expand...
Click to collapse
cant offer any advice, never used footprints, but it seems like a quick and simple option to gather location
Or you could simply use google maps and save a marker. That might be easier to extract the data from, but yoiu dont get a nice pic into teh bargain, hehe
M.WUND.COM
quick and easy weather site. Even has animated radar.

[IDEA] Creating a simple app that grabs info from website/server.

I am in no means a proficient programmer. I have done some programming though. I know the most extreme basics.
I had a eureka moment today at work. We have typhoons here and we readily check the current weather conditions. Well, the local weather website is slow and the main means of communication is a Facebook fan page.
I was wondering how hard would it be to have an app grab info from a server and just display it. That's about it. Maybe some polish and fancy animations.
I don't think it would be much more than a few lines.
Thanks in advance.
Edit: Or open a .com and make a simple, secure form that let's you selection from options that forwards that info to the app.
inifekt said:
I am in no means a proficient programmer. I have done some programming though. I know the most extreme basics.
I had a eureka moment today at work. We have typhoons here and we readily check the current weather conditions. Well, the local weather website is slow and the main means of communication is a Facebook fan page.
I was wondering how hard would it be to have an app grab info from a server and just display it. That's about it. Maybe some polish and fancy animations.
I don't think it would be much more than a few lines.
Thanks in advance.
Edit: Or open a .com and make a simple, secure form that let's you selection from options that forwards that info to the app.
Click to expand...
Click to collapse
this has been done. its called an rss reader
Well... if you want to get technical. Most apps do this that connect to the internet.
I'm not looking for a RSS. I'm just looking to display a very specific string of text that would be very useful to the residents of the island I live on.
inifekt said:
Well... if you want to get technical. Most apps do this that connect to the internet.
I'm not looking for a RSS. I'm just looking to display a very specific string of text that would be very useful to the residents of the island I live on.
Click to expand...
Click to collapse
Seriously I would consider RSS, even if it is a widget which gets set to a single rss feed. It is what RSS was designed for, chances are the info you are after is available as RSS, otherwise it is very easy to create & host one.
The alternative is nasty if you end up parsing a site, since a single change to the site and the app is dead. Plus it would be a lot of work for something which can be very simple.
Hmm. Fair enough. Can you do widgets on the iphone? I was going to port it there too.
I just need to post a tccor and sea condition.
Sent from my PC36100 using XDA App
inifekt said:
Hmm. Fair enough. Can you do widgets on the iphone? I was going to port it there too.
I just need to post a tccor and sea condition.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
I've not done any android widgets or iphone. But if you are lucky you might find some suitable code somewhere for a basic RSS widget, RSS is quite a common way to do things (since you download a single file and parse the xml).
You may even find there are already apps out there which allow you to set a single rss feed for displaying in a widget. But I guess you are after something you can put in the market yourself.
The RSS feed itself is easy:
There are site which will do it for you:
i.e. feedweaver.net
There are some which will monitor pages for changes too, depending on what you need.
Otherwise you can diy, Howto Create an RSS 2.0 Feed - http://www.petefreitag.com/item/465.cfm and host the file yourself (i.e. dropbox public links or FileDen, anywhere which hosts a file with direct links).
I would recommend using Google Feedburner to set your rss feed address and then link it to your file (this means you can move your file around without requiring the feed link to change).
Of course if you can find the info already available as an RSS feed, then you can re-feed it through Feedburner so you have control of it (if it changes you can change your links without changing your app).
You might also want to check out the word-of-the-day widget in the Android SDK. It grabs very specific information from a dictionary web site and displays it using an app widget.
http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html

Categories

Resources