I'd like to develop a Ruby on Rails app, specially with a mobile web interface, It's a really simple Google Maps powered app, where the user will go in and get directions for a given Place inside a Complex.
Can anyone point me in the right direction? Regarding tools and what tips/tricks I should keep in mind?
I also have a doubts regarding how to determine the user location from a mobile device. How is this accomplish?
I would start with reading Google's API code here:
http://code.google.com/apis/maps/documentation/javascript/basics.html
Specifically the sections on Geolocation and Developing for mobile devices.
From what I've seen, the rails Google Map API plugins and gems are either outdated (they use v2 of the API), or they limit what you can do with them.
I came to the conclusion I was better off digging into the Google API directly and using jQuery to make the AJAX calls to my rails app. Start with a bare bones rails app and implement some of the samples Google provides so you can play around with the interaction with rails.
There is an Apress book "Google Maps Applications with Rails and Ajax", but it's outdated because the API has changed drastically between v2 and v3. But you can still use it as a starting point. You just have to make your own conversions from v2 to v3 in the samples.
You can get location information from the browser using the HTML5 geolocation API.
The best library I have found that supports this cross-browser is: http://code.google.com/p/geo-location-javascript/
The google maps v3 API is very easy to use, so just go start playing with that: http://code.google.com/apis/maps/documentation/javascript/
Related
Currently was playing around with a robotic process application called Blue Prism and learned you can drop a URL link to a WSDL location to consume api calls. I tested using a free service and it worked great.
My question is in regards to Google Sheets API, a project has come up where this would be very usefull however I'm not able to locate or if one even exists (A WSDL or WADL) for the google sheets api.
If anyone could give me any direction on this that would be fantastic.
Google docs can be automated using REST web services. You can find more information about google docs api at google sheets API page.
BluePrism has an out-of-box tools to work with SOAP request with WSDL, but unfortunately it does not have out-of-box support for REST web services.
If you'd like to use API to interact with google docs, then you can do that, but you'll have to create your own code stages to do that.
I am trying to use Google's new speech to text api: https://cloud.google.com/speech/docs/rest-tutorial . They currently have python and node.js examples.
Unfortunately, my application is RoR. I was looking through https://github.com/GoogleCloudPlatform/gcloud-ruby , which is a gem that interacts with google cloud services (but not speech). I was hoping that I could use the two together to come out with a working solution, but my knowledge of how to use API's is limited.
Enough background, my questions are:
Does anyone know if Google is going to put out a Ruby version of the speech to text api? If yes, is there a timeline?
If I am impatient, how would I go about using their current API's. By this I mean, is there a good resource for someone to learn how to use generic API's?
The gcloud-ruby gem now supports google-cloud-speech.
To address your other questions, there are no language specific versions of the APIs themselves. They are all HTTP APIs (either REST or gRPC), so they can be used from anything that can make HTTP requests. It can be tricky to use them directly though, because of things like how authentication is handled, which is why client libraries exist for different languages.
If you want to learn more about how to use the REST APIs directly, first take a look at the doc 'Using OAuth 2.0 for Web Server Applications' to find out how to manually authenticate, which has examples for Ruby and raw HTTP/REST.
I would like to know if someone has got documentation about the Google Maps API, I'm only looking for the traffic live information I would like to implement it on my iOS application.
Does such an API exist?
I don't think Google offers a standlone traffic API as of now. However there are a couple options.
Render the Google Maps element in a WebView and use the Google JavaScript API to enable the traffic layer. The downside of this approach is that the UX likely wont be as nice as native programming. The upside is less coding.
http://code.google.com/apis/maps/documentation/javascript/
http://code.google.com/apis/maps/documentation/javascript/reference.html#TrafficLayer
Call another traffic provider's REST API and overlay on top of the native iOS map component. This overlay is pretty straightforward through code if you get a KML response. The two I know of are MapQuest (yes, they are still around!) and Yahoo (though their API is in transition now).
http://www.mapquestapi.com/traffic/
http://developer.yahoo.com/traffic/rest/V1/index.html
I want to create an application in blackberry that shows Traffic data or live traffic on map from a location......
i searched a lot but did not find any help regarding to this developement..... :(
can anybody help me or guide me to go forward......
Thanx in advance!!!
To begin with you need to break your question down into parts. Then ask for help on each of those parts/tasks. So let me take a quick stab at break this down...
You'll need to get the current geo location.
(java)
http://www.riccomini.name/Topics/Mobile/BlackBerry/BlackBerryStormGPS/
(WebWorks)
http://docs.blackberry.com/en/developers/deliverables/11849/blackberry_location_568404_11.jsp
You'll need some kinda of mapping API to get/create maps:
(Java app)
Either Google Maps :
http://www.blackberryforums.com/developer-forum/143263-heres-how-start-google-maps-landmark.html
OR RIM's Map API (
http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/lbs/maps/package-summary.html
:
http://docs.blackberry.com/en/developers/deliverables/17954/Creating_a_static_image_of_a_map_1205333_11.jsp
)
(WebWorks) -- Just Google for "JavaScript and Google Map API" -- Also, there are a couple of good books out there.
You'll need to be able to overlay/pull the traffic information ( If your using the Google Map API, then you could use a Google map overlay for traffic: http://code.google.com/apis/maps/documentation/javascript/v2/services.html#Traffic_Overlays )
After looking at this I would suggest you build this using the WebWorks SDK (aka blackberry widget app). I think it would be the simplest solution to integrating with Google's MAP APIs. And using WebWorks SDK would also allow your app to run on the Playbook.
I'd like to use the Google geolocation API in my app, written in Python. My problem is that Google provides a JSON interface (easily useable from Python) but from http://code.google.com/p/gears/wiki/GeolocationAPI I see that the API "is published to allow developers to provide their own network location server for use through the Gears API. Google's network location server is only to be used through the Gears API. See section 5.3 of the Gears Terms of Service at [address]."
It is a very strange thing: there is a very cool JSON but I cannot use it. I have to use it through Google Gears instead. But how can I do it from a Python app?
For example, I see that the geolocation service provided by Firefox calls directly the JSON API. Why is FF able to do that?
Thanks,
Alessio Palmero Aprosio
Google has deprecated Gears entirely, as the geolocation feature is now standard in modern browsers (for certain values of "standard").
The pylocation module may provide the information you need. It can output the geolocation data in text, json, or xml.