Google transit provides approximate time of the next bus arriving at a particular bus-stop when you click on the bus-stop icon. This works for trains and even metro lines.
Is there any way I can use these transit information in my own map view? I tried going to the link that is displayed under the timings ( I guess it means thats where google is getting the timings from) but that link is broken...doesnt exist...it must be providing the information to Google only...
So is there any way i can access the Google Transit information?
Thx.
Yes, the data feeds are publicly available and published by the corresponding transit agencies. The available list is here. You'd need to download the data and host it or include it in your app.
In the "worst case scenario", you could download the result of a web query to maps.google.com (such as http://maps.google.com/maps?saddr=new+york&daddr=boston&dirflg=r) to your app and parse the result. Maybe there are even sample-scripts that already do this!
So finally i had to drop the idea...its only available for usa at the link given by #Robby but is (currently) unavailable for quite many countries.
Hoping itll be available soon.
Thx for all the responses.
Related
I'm developing a petrol price comparison app for my final year project in university (something similar to GasBuddy or PetrolPrices if you're living in the UK/US). I want to create an Android app that features an in-app map that's prepopulated with all the petrol stations in the country (Ireland).
I was going to use the Google Maps API for the in-app map and then add custom markers for all the petrol stations. I'm going to use Firebase as my database and wanted a section of it to be a list of all the petrol stations with their information such as; co-ordinates, opening times, petrol prices etc. I would use the Google Places API but I only want petrol stations to come up on the app without a user having to input a search query for them, which means the map will have to be pre-populated already.
Is there anyway that I can get all the co-ordinates of all the petrol stations listed on Google Maps to input into my database so I can prepopulate the in-app map with custom markers?
Thanks in advance
Note that Stack Overflow is not a free code writing service.You are expected to try to write the code yourself. After doing more research if you have a problem you can post what you've tried with a clear explanation of what isn't working and providing a Minimal,Complete, and Verifiable example.I suggest reading How to Ask a good question and the perfect one. Also, be sure to take the tour read this.
That said, you can use Places API - Nearby Search to achieve this. And by using the type filter and setting it to gas_station, you will get details of the place such as their coordinates. See this for the list of supported types.
IMPORTANT NOTE:
Be careful on what you store in your database. According to Google Maps Terms of service under 3.2.3 (a) No Scraping, customer will not: (i) pre-fetch, index, store, reshare, or rehost Google Maps Content outside the services
There is, however, some data that you can store/cache temporarily. See their service specific terms for more information on this.
I wanted to venture into making apps. I wanted to make an app that gathers the events around the user location wise. I want the app to show the events close to user using the GPS of the phone. There is a city page where all the events are listed but I don't have any ideas how I will be able to fetch the data. What are the other ways I can go forward with this? It would be encouraging so that I can research further.
try this
http://www.last.fm/api/show/geo.getEvents
login this and get the api calls and use it in your code
i think you can use a combination of api's to give you the data you are looking for, one such provider i found was http://api.eventful.com/, you can probably even try including foursqaure and meetup's api and even facebook opengraph event api can also provide some handy data.
I'm trying to find a way to figure out how to retrieve clickthrough information to figure out which ad / link was clicked to direct a person to download it.
Say we have the following situation:
User sees an ad for the app.
They click it
It directs them to the app store, and they download it from there.
They run the app
Is there any way at all to figure out the source of the click in step 2? This is for advertising analytics - we want to know where our clicks are coming from.
I know that the site visited in step 1 can theoretically retrieve device data and link it up to device data retrieved by the app. However, we're looking for a more direct approach.
I've had a great deal of difficulty locating information on this, so any assistance would be appreciated.
We're using the Flurry API on IOS and Android.
Thanks!
May be you can check the touchEvent point location, when the ad bannber frame rect contains the touchpoint , we can treat that as a click ad event.
Hello I am new in making GPS based application so please help me
I am making an application which find the nearby hotels(say 1km )according to user location and show the list of them with phone no.
How to go next after detecting the user location?
and how will i get these hotels? is there any api or web service which provides this facility.
I found lots of similar questions there but they're still not clear to me.
if any one could explain this, it would be a great help.
Thank you in advance
For getting nearby famous places, you have to use Google's Places API. You will get complete information from the above link.
Also you can go through the discussion related to the same thing in Using Google Places API
Search by category, with over 100 different categories offered, and an Autocomplete service: http://code.google.com/apis/maps/documentation/places/autocomplete.html
You can see complete list of supported categories here : http://code.google.com/apis/maps/documentation/places/supported_types.html
I also faced the same problem when i started my first location based app..:)try to reading this :
http://code.google.com/apis/maps/documentation/places/
and this :
http://code.google.com/apis/maps/documentation/geocoding/
Hope it will help you...!!
i want to get the current weather update of my current location in android.
the weather update may b in C or F.
i dnt want any extended forecast values...
flow of my app is like:
it gets coodinates and from the coordinates it gets name of the location..based on that location it must return me the weather condition of that area.
kindly help me out in completing this module. m new to android :)
if possible plz give me code sample.
Thanks in advance :)
There are a number of ways to get that, mostly web services but you need to check the terms of service, a lot of them don't want you to embed them in a paying app
via Weather Underground and others via Msn and Google API National Weather Service REST
You probably just want to search for "[Android] Weather" in SO search bar and find something that fits. Googles Weather API seems to be the easiest Google Weather API Tutorial