How does Twitter get its geolocation data? - api

I was wondering if anyone knew how Twitter (or facebook) gets its geolocation data, like the various streets and possible buildings. It seems like Twitter gets it from Google, but does anyone know of any resources on how to set that up?
Thanks!
Matt Mueller

Google doesn't parse from all locations either it seems. At least this seems not to work from Curacao. I'm working on a solution that is more stable. See my open question for details. If you just want google you can use this.
Include
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
JS
if(google.loader.ClientLocation) {
latitude = (google.loader.ClientLocation.latitude);
longitude = (google.loader.ClientLocation.longitude);
}

It does it through the HTML5 Geolocation API that is now supported by most modern browsers. Of course it is up to the browser's implementation of the interface to decide how to determine the location. A cell phone will figure it out very differently from a desktop machine, etc. For instance, Firefox uses a Google web service to do it based on the IP address, while Mobile Safari would use Core Location.
A quick Google search will turn up lots of information how to detect and use the capability.

Related

Can you use the Vimeo API to return videos uploaded by region or liked by region?

Does anyone know if it's possible to use the Vimeo API to return videos based on where in the world the video was upload from or alternatively where in the world the video has been liked from? Does Vimeo store any location specific information? Any help on this would be awesome!
Don't think so. Vimeo currently doesn't expose any geolocation data via their api. Can't say whether or not they're tracking it internally on their backend.
They did just launch a new help page:
https://vimeo.com/help/contact
Might be worth messaging through that site to confirm.

How to get user's location from Google Account

How can one get user's location from Google? I can't find any suitable API for that, this is seems rather odd given the many places where Google tracks my location. It doesn't seem to be contained in user's profile, not every Google user uses Google+ so that can't be used either, and no one is actually using Latitude.
http://status-501.tumblr.com/post/19852581283/need-a-location-of-that-google-account
Latitude for those that use it, Google+ profile for those that use it and have entered a location, and Android GPS API are the only location APIs that Google publicly provides. You might consider using the HTML5 Geolocation API.
Now the Google latitude is defunct only Google+ is the viable option.
The location can easily be shared within google+ but I haven't found any solution (yet) to extract it to my application (yet!).

How to interact with the Panoramio API using services?

I'm writing a location base client and would love to integrate Panoramio with my client, now the problem is that I can't find a way to interact with the Panoramio using a ~REST-like service.
I know they do have an API but it's mostly for embedding the content into a website and not as to interact thru me code (at least from documentation)
Have any of you hacked a way thru this?
I am writing the clients natively for android and iphone in case you are wondering.
cheers,
G.
well it seems like the answer came a bit fast... and although this is easily accessible thru their website it is discussed in their forum and even google has posted about it in their geo developer blog
a sample request to get images from a bounding box will go along the lines of the following example:
http://www.panoramio.com/map/get_panoramas.php?order=popularity&set=public&from=0&to=10&minx=-124.29382324218749&miny=36.089060460282006&maxx=-119.8773193359375&maxy=38.724090458956965&callback=MyCallback
Update: I have found also the official page to their data api.
hope it helps!

Reverse geocode without using MKReverseGeocoder

I'm trying to detect current user address using MKReverseGeocoder passing coordinates obtained via CLLocation class. Reading MKReverseGeocoder Class Reference I noticed that
The Google terms of service require that the reverse geocoding service be used in conjunction with a Google map; take this into account when designing your application's user interface.
so I'm wondering if (and eventually how) can I reverse geocode user current location on iPhone OS SDK 3.1.3.
I thought using Google Maps API but the EULA has the same obligation.
Yahoo Maps API is even worse and Microsoft one aren't free.
http://www.geonames.org/ is another free alternative
Well if the EULA of Google has the obligation and you are not following it ( similar topic here), then of course you can't do it.
Still I would advice you to find some alternatives, what about this, it's free and doesn't look bad at all.
a question on geonames:
for retrieving city i must pass north,south,eas,west; there's a way to pass only lat & long for retrieve city? I canno't find method to do...

Private viewers using the YouTube API

Has anyone been able to set who can view a private video on YouTube using the API?
The API isn't designed for this, so it's either very difficult or impossible.
You can only share a private video with 25 of your friends, so you have to first be friends with them, then give them access, which means the api would have to do all of these actions and once you hit 25 people you'd have to stop anyway.
You should probably use a different service or make your own if you want private videos.
Well you could try to load the FLV to your own website. Do a login system and use flowplayer to show it.
I've worked with the YouTube API which is pretty nice and works very smooth with jQuery and Ajax - but as the others have already mentioned there is no built-in feature for that.
You could probably find some sort of work-around as you could integrate you own authentication and login capabilites - but obviously that would not prevent your users not being able to watch the "restricted" video.