Google has a weather box whenever you search for weather or temperature which gives info about your town and the temperature, wind and other there. Is there a way to get that data into a json variable ?
Google doesnt have an JSON api for their weather service.I prefer using openweather api which gives you a simple and easy to use json interface.Or you can create the json objects yourself if you prefer doing it in the harder way.here is an example on how to use google map weather layer.
Related
I am new to google Map Api V3, and i am planning to find the best route among some waypoint.
I found that the direction API could solve my problem (http://maps.googleapis.com/maps/api/directions/json?...)
I got the Json output, but is there any way to display the route on Google map directly?
Or i should parse the Json, get the legs information, and plot it again??
Thanks a lot
I'm building a twitter app on node and socket.io that should display the locations of streaming twitter data on a google map in real time. I'm having trouble figuring out the best way to grab the location from the Twitter Streaming API. The API has a coordinates attribute, but only 1-2% of all tweets have this data available, which kind of defeats the point of what I'm doing. There's also a location attribute for each user, which seems more promising. Given that user input/format is unpredictable, my current solution is to manually create a hash of US states/major cities with coordinates (in geo json- to feed to google maps) and reg ex to match with the user's location strings. Does anybody know of a better way to do this?
You can create a filter for the Streaming API which will only show you Tweets which have location information.
I assume, from your question, that you're only interested in messages from within the continental USA?
In which case, add the following parameter to your streaming request
locations=24.431150,-123.574219,47.683144,-59.238281
That's roughly the bounding box - you can adjust as you see fit.
I am trying to import all restaurant data (within a certain location) from Google Places API to a Parse class. What is the best approach?
The types of data I need are: name, opening_hours (array), price, geometry (location), etc.
Do I need to download all the Google Places data first and then import it into Parse or can this be done all at once?
Parse supports "REST" API, should I be using REST or import through json/csv?
How do I go about "retrieving" the Google data? (trying to wrap my head around the concept)
Google API -https://developers.google.com/places/documentation/details
Parse Import API -https://www.parse.com/docs/data#data-import
Parse REST API -https://parse.com/docs/rest
Sorry for the newbie questions. I've never migrated data using API before.
I would advise against storing the data in a Parse class. The Google Places API is there for the ever-changing data that is out there on restaurants. If you import it into Parse, you would have to constantly update it. The Google Places API is fantastic and easy to use. Currently I use it in my AngularJS application for an autocomplete text input. I also use the Google Geocoding API in my Cloud Code with a Parse.Cloud.HttpRequest. Both work great but I would never want to import the API data and make it static...
I think a better option is like #jsetting32 commented about. Query the API for the events in the area, then save the one the user selects in a ParseObject. You can pick and choose the data you want to save and even give it start and end dates so users can look at past events.
The Weather.com data in the weather layer is aggregated temps from the region and NOT direct weather station data. The meteorologist where I work is complaining about how inaccurate the data is on our web site.
We're already using a paid Weather Underground account for the rest of our weather data, so I'd like to replace the weather.com layer with a layer using data from weather underground.
I'm not sure where to start. Is the base code for the current weather layer available? Or does anyone have examples of using alternative weather data sources?
The WunderMap layer with the temperatures will be coming to the API and then you'll be able to access it with the other API data like Radar and Satellite. If you have an immediate need, get in touch with us at Support and we can connect you with Business Development. http://help.wunderground.com/
I'm building an application that requires the name, long, and lat for the transit stops in my area.
Google Maps API displays this information, but in this scenario I can't use the API and need to extract this information to an XML format.
I'm not sure if this is possible and can't find any reference to this on the web.
Any Ideas how I can extract the transit stop long, lat, and name from Google Maps, preferably to an XML format?
Now it's possible to get this done, check this post:
Detect the nearest transit stop from the given location
And if you want to see it in action try this jsfiddle:
http://jsfiddle.net/doktormolle/aZrvs/