Archive for the ‘Location’ Category

File Under: Location, Social

Facebook Finds its Place in the Location-Sharing Landscape

Photo by Mr Ush via Flickr/CCThe biggest social network on the web — that’s Facebook, by the way — is getting ready to unveil a location sharing service of its own, according to a report Tuesday.

Citing unnamed sources, The New York Times’ Bits blog says there will be two components, “a service offered directly by Facebook that will allow users to share their location information with friends,” and a set of APIs other location-sharing services can employ to allow Facebookers to update their location info using outside services.

NYT‘s Nick Bilton says Facebook will shed light on the new service at the company’s upcoming f8 developer conference in April.

Facebook has certainly taken its sweet time getting in on the location-sharing game — services like Foursquare, Gowalla, Google Latitude and Yahoo Fire Eagle have been blowing up over the last year. But the whole idea of “check-ins” raise new privacy concerns for many social network users. Some view it as over-sharing, others have concerns about invasion of privacy or cyberstalking — which is why all of the most popular location-sharing apps have extensive privacy controls built in to their opt-in services.

Earlier this week, reports surfaced that Google is experimenting with rolling location-based features into Buzz activity streams, and that the company is even working on a new location-based ad format.

Photo: Mr Ush/Flickr/CC

File Under: APIs, Location

Google Gets a New Geocoder

localmap

Google has announced a new geocoding web service app authors can use to better plot locations on a map.

The new Google Geocoding Web Service includes some enhanced capabilities that not only make it possible for app developers to provide more accurate and granular locations in their apps, but it also lets them increase the performance of their apps through precaching.

First off, the new service employs the Google Maps JavaScript API version 3, which has a handful of improvements over the previous versions. Users will get more well-formed and easier to parse data from each request. The service can return full names as well as local-language abbreviations for countries, states and territories. Users also have the ability to apply multiple tags to each address component.

Second, the new service lets apps precache data. From the announcement on the Geo Developers blog:

The Geocoding Web Service is intended to enable precaching of geocoder results that you know your application will need in future. For example, if your application displays property listings, you can geocode the address of each property, cache the results on your server, and serve these locations to your API application. This ensures that your application does not need to geocode the address of a property every time it is viewed by a user. However we do ask that you regularly refresh your cache of geocoder results.

It’s important to note that the new service must be used in conjunction with a Google Map, generated either by the Google Maps API or the Google Earth API.

File Under: APIs, Location

Yahoo Maps API

This is the basic structure of a data call to Yahoo Maps’ API. This will draw a 500px by 300px map centered on Wired’s San Francisco offices, complete with zoom and pan controls. When the user clicks on the location marker, a pop-up box will appear with some text inside.

All of these attributes can be changed by modifying the code below. You’ll need to use your own API key.


Continue Reading “Yahoo Maps API” »

File Under: APIs, Location

Using the Yahoo Maps API

Yahoo’s Maps API may not be as popular as Google’s mashup mainstay, but it has many of the same features. In some ways, it’s even easier to use than Google’s Maps API, so beginners getting started with API interaction might prefer Yahoo’s implementation.

To get started working with Yahoo maps, we’ll simply create a map we can display on a web page, and then add a marker to denote a particular location.


Continue Reading “Using the Yahoo Maps API” »
File Under: APIs, Location

Get Started With Google Geocoding via HTTP

Google’s mapping API is one of the most-used application interfaces on the web. It’s largely responsible for the recent explosion of map-based mashups. The massive popularity of Google Maps has also given rise to a new word in the web developer’s lexicon — geocodes.

Maps require a latitude and longitude point to plot specific locations. Whenever you’re programming a custom map using Google’s API, you will nee to convert the relevant city name, ZIP code, or address to latitude and longitude points. This process is called geocoding.

Google currently makes the process available via the GClientGeocoder Javascript class. That JavaScript class makes the geocode available immediately to the browser. But sometimes, such on the fly access isn’t enough. We want to store location information for later use. In that case, we need another service to grab the geocodes permanently.

That’s where geocoding via HTTP comes in handy.

Continue Reading “Get Started With Google Geocoding via HTTP” »