Now You Can Share to Circles from the +1 Button

The +1 button is a great way to recommend the pages you love on Google Search. But sometimes there’s content you want to share right away — at least with certain circles of friends. That’s why we’ll be rolling out sharing on +1 button soon. Nuanced sharing is a critical part of the Google+ project — this enhancement is a first step to exposing such sharing across the Web.

Millions of sites are using the +1 button to let visitors recommend their content right in Google search results. Now these sites will get an added benefit as +1 provides an easy way for visitors to share content into Google+. If you manage a website, your visitors can start a conversation about your site’s content with the circles who are most likely to enjoy it, expanding your audience while helping your content get noticed on Google Search at the same time.

We know this is one of many scenarios for including sharing in developer applications. Expect to see more integration opportunities in the future. Check out the +Snippets documentation to get familiar with the approach we’re taking to including rich content in the conversations your users start.

You can preview this +1 button change by enrolling in the Google+ Platform Preview. This preview channel allows you to test updates before they launch to all users on your site.

The Google Maps API is truly an international product

 

The Google Maps API is truly an international product with coverage from Hanoi, Vietnam to Lahore, Pakistan and everywhere in between. Like the extensive coverage of Google Maps (thanks in part to user generated edits via Google Map Maker), our developer community is internationally extensive as well! Google developers exist in just about every country and our Google Technology User Groups (GTUGs) have over 253 chapters around the world! To celebrate the global nature of Google Geo APIs and its developers, this month we’ve decided to highlight five great Geo API implementations from developers aus Deutschland! (that’s ‘from Germany’ for non-German speakers 🙂

Street View Live from Lufthansa

Lufthansa, Germany’s national airline, flies to many destinations in Europe. To help travelers discover Europe and encourage them to plan a vacation, Lufthansa has plotted all their destinations out on a map and linked them to famous spots via the Street View API. For example, by clicking on the Paris icon, users will be taken to Street View imagery of the Eiffel Tower to entice them to travel to the City of Lights.




 


Bikemap.net, built by Toursprung from Austria and Germany, allows cyclist to view and share bicycling routes from all over the world. Users can rate routes, mark their favorites, send the GPS coordinates to a mobile device, suggest changes to routes, and even share the routes on social media sites. Each route includes details about the distance, surfaces, and difficulty. To help cyclists better understand the terrain the site has an interactive elevation bar. A similar effect can be achieved using the Google Elevation API.

McDonalds Store Locator



 


The German online destination for McDonald’s features a very nice store locator built on the Google Maps API. Very similar to another store locator built by German company, Hugo Boss, this store locator uses the map as both its background and focal point. The store locator also features custom icons, category filtering (24hr, wifi, drive through, etc), and custom controls.

Mare Verlag – Interactive World Map



 

Maps become very powerful when they are used to add geo context to information. German magazine, Mare, is using the Google Maps API to geotagged their stories and display them on a map. You can use the map to focus in on a particular part of the world and the application will populate the map with the stories that occurred in that region.

Munich S-Bahn Live Tracking on Google Maps



 

 

What’s great about this map is that it shows Munich S-Bahn transit system in real time as the trains travel through the city. There are clickable custom icons for each train, representing their line and when clicked on display stop information in an infowindow. The Google Maps API is a great solution for real-time asset tracking for both transit and business applications. To find out more about using asset tracking for business applications, visit the Google Geo Enterprise website.

 

Bing Maps: SQL Server Denali CTP3

At the beginning of the week, there was a new version of the Bing Maps AJAX API rolled out (version 7.0.20110630165515.17). There’s a list of changes at http://msdn.microsoft.com/en-us/library/gg675211.aspx but, to summarise them here:

  • Directions and Traffic information (both features that were included in the core 6.x control) have been added back into v7 using the new optional module functionality.
  • New venue maps mode allows you to see layouts in the inside of shopping malls etc.(Haven’t seen much use for this yet – don’t know if it really exists outside the US)
  • You can now disable birdseye mode – very useful since it prevents you accidentally breaching the Terms of Use if not licensed to use it!
  • Polygons and polylines have a new dashstyle property, which means you can style vector shapes so that, for example, electricity lines and railways show as dashed lines (as in an Ordnance Survey map).

I’m particularly pleased about the last two features, since these are both things that I’ve suggested about on the MSDN forums… whether it’s coincidence or not, I’m glad they’ve now been implemented.

SQL Server Denali CTP3

A download link to the latest preview version of SQL Server was announced on Twitter, and a rapid rush of tweets followed as people clammered to see what new features were included.

image

I’m only interested in summarising changes for the spatial toolset, which as far as I’ve found out so far, are as follows:

Firstly, the Spatial Results tab is back! Introduced in SQL Server 2008, broken in CTP1, and back again, it’s everyone’s favourite quick way of visualising geometry or geography data. The 5,000 object limit still seems to be in place:

image

My next test was to see whether it could plot the new curved geometry types. Initial results were disappointing, when selecting a CircularString resulted in nothing but a white screen, while a LineString drawn between the same set of points was displayed as expected:

image

This same problem occurred across all curved geometry types – to display a curved geometry in the spatial results tab, it seems you have to linearise it first – for example, using STCurveToLine(), or creating a linear buffer around it using STBuffer() as shown here:

image

(Note that, although these features look curved, they’re really just a many-sided LineString and Polygon, respectively). Hopefully displaying true curved features will make it into the next release.

As for new functionality, there’s a new extended method, IsValidDetailed() – which tells you not only whether a geometry is valid (which is what the OGC STIsValid() method does), but why it’s invalid. Here’s an example script to test it:

DECLARE @g geometry = 'LINESTRING(0 0, 5 10, 8 2)';
DECLARE @h geometry = 'LINESTRING(0 0, 10 0, 5 0)';
DECLARE @i geometry = 'POLYGON((0 0, 2 0, 2 2, 0 2, 0 0), (1 0, 3 0, 3 1, 1 1, 1 0))';
SELECT
  @g.STIsValid() AS STIsValid, @g.IsValidDetailed() AS IsValidDetailed
UNION ALL SELECT
  @h.STIsValid(), @h.IsValidDetailed()
UNION ALL SELECT
  @h.STIsValid(), @i.IsValidDetailed()

And this is the output – which is much more useful when it comes to fixing invalid data than a simple Boolean obtained from STIsValid():

image

As with some of the updates to the Bing Maps control, I was particularly pleased to see this feature get included since it was something I’d raised in the MSDN forum – Microsoft are certainly scoring lots of points with customer responsiveness with me this week!

The only other functional addition I could see was the AsBinaryZM() method, which retrieves the Well-Known Binary of a geometry, complete with Z values. Previously, the only way to retrieve (or input) geometries containing Z and M values was via Well-Known Text, since the WKB representation stored 2d coordinates only.

The new method works pretty much as you’d expect, and the resulting serialised value also demonstrates some of the flags indicating this geometry has Z values:

DECLARE @g geography = 'POINT(1.6 52.5 100)';
SELECT
  @g.STAsBinary(),
  @g.AsBinaryZM()