Real - time adjustment of route based on Traffic condition - android

With the similarities of WAZE App.
I wonder what API i can possibly use to make an mobile application that will dynamically / automatically adjust its route based on traffic level / condition.

If you are using google maps in android you need to call setTrafficEnabled(true) on your googleMaps object.
https://developers.google.com/maps/documentation/javascript/examples/layer-traffic
If you want the raw data it's a little more complicated and almost impractical.
You can get the layer from google maps and parse the server response(but it's really hard).
You could use Google Enterprise (NOT FREE) https://enterprise.google.com/maps/products/mapsapi.html and it will calculate routes with including traffic data.
Or if you want just incidents use bingMaps API https://msdn.microsoft.com/en-us/library/hh441726.aspx
There might be some other solutions, but they are not free, it's a complex service and people work hard for that information, they will charge for it.

Related

Google Maps Speed Limit

I'm trying to create a speed limit guide app (city-wide coverage). I've been researching and I found out that to access speed limit data in Google Maps API, you need to subscribe to a premium plan and access the speed limit data via Roads API. I'm just wondering if there are other ways to do a speed limit app that automatically adjusts depending on where the user is currently? Maybe hard code that if the user is somewhere between these 2 points on the road, its speed limit is etc. or an alternative map, I'm not really sure.
Hoping for your kind response, thanks.

Basic Google Maps/Mobile App integration questions

I'm in the research (what's doable) phase of a possible app development project.
My potential app will be a trip app that lists all stores and drug stores. Is is possible for my app (regardless of platform) to integrate Google Maps (or some other maps database) to provide:
turn-by-turn guided directions?
interactive list of stores and drug stores between start and final destination so that I can choose my preferred stops?
calculate time/distance to each chosen stop?
ability to add other parameters to each stop?
I found another app that functions similar to my app idea but I'm not sure if the GPS navigation functionality and limitless list of places has to be built from scratch or can integrate with an existing tool like Google Maps API and if there's a charge if I'm charging for my app.
You can make requests like that. It might be best to build for the platform. Ie. If it's iOS use Apple Maps for ease of use, and google for Android. However, if you're going to build cross platform go with google. Might have it issue separate queries for different data.
No they will be use normal google map API most of cases but if JavaScript call is increase they will buy premium plane because google provide 1000 JavaScript call in a day you will increase limit at 100000 by simply register you credit card which was well inaf for new comer also for mid range user and little bit heavy user.but in premium plan google give more facilities to there customer. you can get more info at https://developers.google.com/maps/premium/

is using an intent to show the map cost money?

Sorry if the question is so basic I am new to android and programming.
I am going to make an app, in this app I need to show locations or maybe even directions in map lots of time. It is very likely, an interested user see the map more than 20 times in a row in just one time lunching the app.
I choose to use google map api for this application, but I saw in their website you have to pay money if your app use map more than 25000 a day and it is likely to happen if I have more than 2000 active users easily, but I am not sure I can make money with this app or not; so I have 2 choose and I am not sure about one of them:
1- using intent to show geo on an external app like google map but does it cost that money or not? (thats my main question)
2- using another api like http://www.openstreetmap.org/ or http://leafletjs.com/
Which option do you recommend? And if that's the option 2, which api do you recommend and why?
Note that the program work base on website and its data base and that website gonna have same functionality as the app and it need to use that api, site gonna use drupal-8 probably but not 100 percent sure yet.
I googled for the answer but I didnt get the answer.
1) if you do an explicit intent to maps this way https://developers.google.com/maps/documentation/android-api/intents you have nothing to pay, it's an intent not an API call, in fact you don't need api key to do that.
2) I've used openstreetmap in the past, it's not difficult, but maybe it depends on your skill.
If you are really new, I suggest you to use intent. You can always switch to openstreetmap when you become more confident!
If you want to see an example with openstreetmap in my github I have a project fell free to look at the code if this helps you https://github.com/doJester13/Indoor-GPS
For Android, your users can do 150 000 Google Places requests per day, if you Enable Billing with your credit card on Google (That doesn't cost, just verifies your identify). The Maps API is completely free
By the time you have so many users that they use all the map requests, you can probably afford it.
Source: https://developers.google.com/maps/pricing-and-plans/#details

Working on a way to show current Android phone location in Google Maps

Looking for a little bit of help structuring my problem.
I will be traveling with friends to a party weekend and we are plotting locations of places to visit and see on a shared Google map with custom layers.
My thought is that I could add real-time location layers for each attendee, based on the lat/long of those with Android phones.
I'm trying to figure at the moment the elements of the code that I will need and asking the community for help structuring the design.
So far:
Working on a way to broadcast the current lat/long of the Android phone through an API
Determining the best way to import the returns (lat/long) from the API as a layer into Google Maps (thinking KML, but there may be a better solution with GPX or text files)
Once I finish 1 and 2, will write the code to accomplish the process and load to Google Maps
Any guidance is very much appreciated
Why do you need to develop everything of this sort when Google has already provided us with the My Map app. This app is available in Play Sore for Google as well as the App Store for Apple. So all your friends whether an Android or iPhone user can install this app on their phone.
With this app you all can customize the map as per the needs and share inside the group. This app explicitly serves the purpose for the vacation planning when a group is involved.
Take a look on the Google Play Store and the App Store to explore and download.

Does Google Directions API take accounts to traffic?

i know in the google map application for android, it does. However i am not sure if it does for driving direction using https://developers.google.com/maps/documentation/directions/
No, the google directions API won't factor traffic into its calculations. As far as I know, the traffic information comes from somewhere else and the google maps application gets both direction information and traffic information and handles factoring them together.
yea I'm trying to get this feature working, looks like gm.getdirections() takes command line kargs. maybe with that?
I'm not quite sure why, but it seems the directions API is always a fully 'static' reply. In other words, current conditions have no impact on the response.
I wrote this in a question to get it verified, but as far as i'm aware it's currently like this:
In the free API it will not look at traffic at all
In the paid API it will look at traffic, but not reroute, just tell you the estimated actual duration of the trip
In all Google end-products Maps does take into account traffic and
will reroute accordingly.

Categories

Resources