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.
Related
I've developed a hybrid app that collects GPS points using a plugin (this one, to be precise). The thing is, when users are on a remote location, with little GPS/network coverage, we've had to resort to opening Google Maps in the background and then using the app in order to get a good coordinate. Otherwise, it doesn't work too well.
I would like to eliminate the need for doing that, but feel at a loss about what kind of practices do apps like Google Maps or Waze do to get better geolocations. Is there a code base that I could study, or some documentation?
Thanks in advance!
You may check here. It is GitHub from Google Devs and they show how they handle location. Also, you can find other examples there
I've noticed Google has had this feature for about a year now but I don't see it on Google Places API. If you look up a library or a gym near you, Google will show how long people typically spend at the place (like a gym nearby me, "People typically spend 45 min to 1 hr here.") Is there any way to get this information on Google Places API or is it not available yet?
You are right this information is not available via Places API yet. I can see that people have already filed a feature request for this in the Google issue tracker:
https://issuetracker.google.com/issues/35830308
I would suggest staring the feature request to add your vote and subscribe to further notifications. Hopefully one day Google will implement this feature in the API.
As far as I recall, Google Places API currently does not have any functionality to provide that information. You may consider filling a feature request through Google Code. Alternatively, I'd advise to simply look up the place (in your app, that is) and parse the typical visit duration manually. There are many drawbacks to this solution depending on the method you're gonna use (such as the layout of the page may change and your app will stop working, requiring an immediate update), but it's an option.
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.
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
I want to receive roads information from Google Maps API like the regular street info.
For example, in the Google Maps application, you can see the traffic in each road. Is there any way to receive this info in data and not just view on the screen?
I need to get information such name, traffic, speed-limit and point of start and end.
I think about something similar to the existing streets info, I will give a location (long,lat) and the system will return the nearest roads around (maybe crossroads also).
Is there any way to get this information with Google Maps API? If not, there is another service that can provide this info?
I tried to find some details but I can't find anything...
You can use Google Directions API for this. It provides you closest directions, distance and time to travel. I also recommend using Google-Directions-Android library for parsing all that stuff, it really saves a lot of time.