Use Google Gears geolocation from a python app - geolocation

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.

Related

does google provide a wsdl or wadl

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.

Google Maps Geolocation API over http

I'm implementing the Google Maps Geolocation API as explained here. https://developers.google.com/maps/documentation/business/geolocation/
The problem is my server is implemented in delphi and using https is quite complex,
is there a way to use this API in plain http?
I know there are some security issues, but this feature in particular will only exists in a cache subsystem where no sensitive data is ever send or stored.

Using google map API to open *.map or other map file ( offline map )

Is it possible to open map file at local computer (offline) using google map API? If yes, How?
I have programed an application in delphi. It shows the company cars on the map. but now we need the map to be offline. I have *.map file and may be I can find other map file from internet. I have not a point where to start at all. What do I have to do? tnx.
The google maps works by transferring data asynchronously from Google's servers to a user's computer. So if you are offline there's no way to communicate with Google's servers and retrieve such info. Even if you accomplish store the cached google maps and display offline you must follow the Google Maps API Terms of Service.
(b) No Pre-Fetching, Caching, or Storage of Content. You must not
pre-fetch, cache, or store any Content, except that you may store: (i)
limited amounts of Content for the purpose of improving the
performance of your Maps API Implementation if you do so temporarily,
securely, and in a manner that does not permit use of the Content
outside of the Service; and (ii) any content identifier or key that
the Maps APIs Documentation specifically permits you to store. For
example, you must not use the Content to create an independent
database of "places" or other local listings information.
As alternative you can use the Google Static Maps API V2 service you can retrieve a image, which can be saved to a file, basically you need build a URI like so
http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=12&size=400x400&sensor=false
And the using a GET you save the response in a file, check this article for a delphi sample Using Google maps (Static Maps) without TWebBrowser
Google maps API interact with google servers, online. There is no way to use maps API's. If its a web interface you can try looking at HTML5 projects which have ported maps offline with co-ordinate resolution.
Here is your FAQ related to storing google maps data offline
What I suggested about HTML5 projects, you can take a look at this.
This combined with offline html5 offline data caching should be a good solution for your problem.

Is there a Google Maps API for iOS which offers traffic information?

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

Mobile Web Rails Wep App with Geolocation

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/

Resources