google geo apis overview

27
Google Geo APIs Overview Ossama Alami Developer Advocate, Google @ossamaalami @googlemapsapi

Upload: ossama-alami

Post on 20-Aug-2015

5.903 views

Category:

Technology


3 download

TRANSCRIPT

Google Geo APIsOverview

Ossama AlamiDeveloper Advocate, Google@ossamaalami@googlemapsapi

Google Maps API

• Most trafficked worldwide mapping website

• Most popular mapping API

• More apps use it than any other API on the web

• Loads of features:o Road, terrain, satellite and custom map tileso Streetviewo Geocoding, Reverse Geocoding, Directions, Local searcho Traffic, wikipedia, panoramio, custom overlays o more...

Google's Geospatial APIs

Visual APIs

JS Maps API V2JS Maps API V3

Earth API

Static Maps APIMaps API for Flash

Other Geo APIs

• HTTP Geocoder Web Service• HTTP Elevation Web Service• Maps Data API• KML• AJAX Local Search API• Panoramio API• Native iPhone and

Android SDKs

Maps JavaScript API v2

JavaScript framework for building browser based mapping applications 

The first and most established Google Maps API, introduced the concept of a mashup to the world 

Currently ~350,000+ active Maps JavaScript API sites and a large and active developercommunity 

Now includes aerial oblique imagery (sample 1 2)

Supported on: • IE 6.0+ • Firefox 2.0+ • Safari 3.1+• Chome

http://code.google.com/apis/maps/

Maps JavaScript API v3New JavaScript API announced in May 2009 

Developed from scratch with an emphasis on performance 

Targeted at both desktop and modern mobile devices

Initial map load is 2 to 3 times faster than v2 on an iPhone 

Now supports bicycling directions and route optimization (sample)

Supported on: • IE 7.0+ • Firefox 3.0+ • Safari 4+ (including iPhone)• Chome• Android

http://code.google.com/apis/maps/documentation/v3/

Maps API for FlashActionScript framework for developing mapping applications 

Supports development using the Flex 3 SDK, FlexBuilder 3, or Flash CS3

Applications can run in a browser or standalone using AIR 

http://code.google.com/apis/maps/documentation/flash/

Class structure modeled on the JavaScript API 

Supports animated overlays, larger data sets, and 3D perspective (sample 1 2 3)

Supports Flash Player 9 and 10

Static Maps API v2

HTTP (RESTful) service for retrieving composited map images 

Fast and lightweight 

Suitable for all internet enabled devices 

http://code.google.com/apis/maps/documentation/staticmaps/

Now supporting:• Markers, polyline and polygons• Custom marker icons• Geocoding• Encoded poylines

Limitation: • Complexity of overlays is

limited by URL length

Control & Overlay FeaturesV2 V3 Flash

Street View ✓ ★KML Overlays ✓ ★Traffic ✓ ✓Aerial Imagery ✓ ★3d Perspective ✓Satellite, Terrain, Road, Hybrid & Custom Map Types

✓ ✓ ✓

Markers, Polygons, Polylines & Custom Overlays

✓ ✓ ✓

Standard & Custom Controls ✓ ✓ ✓Maps Ad Unit/GoogleBar Advertising ✓Google Earth Integration ✓Wikipedia, YouTube, Panoramio Layers ✓

★=Soon

Geocoder Web ServiceHTTP service for determining: • The map coordinates for a street address (forward geocoding) • The street address at a given map location (reverse geocoding)

(sample)

Can output results in XML and JSON formats

Intended to facilitate server side geocoding of large address sets 

Geocoding results can be stored in a database and used later, but results must be plotted on a Google map when visualised 

Only one address/location per request (no bulk geocoding)

http://code.google.com/apis/maps/documentation/geocoding/

Elevation Web ServiceHTTP service for determining elevation profiles (sample)

Request elevation in meters for specific coordinates or along a path

Can specify how many samples totake along a path

Service will also return elevation over bodies of water as a negative number relative to sea level

http://code.google.com/apis/maps/documentation/elevation/

Service Features V2 V3 Flash Web ServiceGeocoding ✓ ✓ ✓ ✓Reverse Geocoding ✓ ✓ ✓ ✓Driving Directions ✓ ✓ ✓Walking Directions ✓ ✓ ✓Bicycling Directions ✓Elevation ✓ ✓

Google Earth APIBrowser plugin that embeds Google Earth on web pages (sample 1 2 3)

Provides a JavaScript API for controlling the globe and manipulating overlays 

Full support for KML and COLLADA 3D models 

Plugin supported on: • Microsoft Windows (2000, XP, and Vista) 

o Google Chrome 1.0+ o Internet Explorer 6.0+ o Firefox 2.0+ o Flock 1.0+ 

• Apple Mac OS X 10.4+o Safari 3.1+ o Firefox 3.0+o Chrome

http://code.google.com/apis/earth/

Google Maps Data APIFree, scalable hosting of geographic content. Allows applications to view, store and update map data and modify Google My Maps. (sample)

Uses Google Data API feeds to represent maps features (placemarks, lines and shapes) and maps (a collection of features)

Now supporting geospatial and attribute search

Client libraries available for a number of languages including Java, JavaScript and Python

http://code.google.com/apis/maps/documentation/mapsdata/

KMLA XML based file format used to display geographic data in an Earth browser, such as Google Earth, Google Maps, and Google Maps for mobile.

Allows for describing geographic features, touring, overlaying photos and more.

http://code.google.com/apis/kml/

Is now an international standard maintained by the Open Geospatial Consortium, Inc. (OGC).

Advertising on MapsWe provide two AdSense for Maps products to display on-map ads and monetize your Google Maps API application.

http://code.google.com/apis/maps/documentation/services.html#Advertising

Display advertising alongside local business search results

using the Local Search Control (GoogleBar) (sample)

Display advertising based on the Maps viewport using the Maps Ad Unit (sample)

AJAX Local Search APIProvides access to local search results from Google Maps

Search for businesses and other Points of Interest (POIs)

Easily embed into maps using the Local Search Control for Maps API v2 (sample)

http://code.google.com/apis/ajaxsearch/documentation/

Mobile OptionsWeb browsers:• For JavaScript capable mobile browsers (iPhone, Andoird,

Palm Pre): Google Maps API v3• For limited capability browsers: Google Static Maps API

Installed applications:• Android: MapView• iPhone: Map Kit • Embed a Browser

with a V3 Map

Feature Availability & I18NThe Maps APIs are localizedin over 40 languages

Feature availability varies fromcountry to country

In Mexico we have tiles,geocoding, street view, and business listings.Traffic and directions are notcurrently available. 

List of languages supported and features available is maintained at http://j.mp/google-map-features

IFE

Luis RuvalcabaInstituto Federal Electoral

Getting StartedUseful Resources

Documentationhttp://code.google.com/apis/maps• API Reference• Premier API Documentation• Developers Guide and tutorials on Basics, Events, Controls,

Overlays, Services, Flash Development• Download the Flash SDK• Change log, Known issues and Feature requests• Demos, Examples, Articles,• User Forum• ... and more

Geo Developers Blog• http://googlegeodevelopers.blogspot.com/

Follow us on Twitter• @googlemapsapi

Open Source LibrariesOpen source utilities and extensions for the Google Maps API• JavaScript Maps v2

http://code.google.com/p/gmaps-utility-library-dev/o DragZoomControl, ExtInfoWindow, MarkerClusterer,

MarkerManager, more...• JavaScript Maps v3

http://code.google.com/p/google-maps-utility-library-v3/o  KeyDragZoom, InfoBox

• Maps API for Flashhttp://code.google.com/p/gmaps-utility-library-flasho KML parser, Planetary Map Types, DragZoomControl,

GradientControl, more...• Earth API

http://code.google.com/p/earth-api-utility-library/

ExamplesLists and blogs tracking some of the best mashups• http://googlemapsmania.blogspot.com/• http://www.programmableweb.com/api/google-maps• http://maps.google.com/help/maps/casestudies

Developer Qualification

Community Driven. 

Q & AThanks!