intro to web map apis

33
Web Map APIs Yos Riady | yosriady.com

Upload: yos-riady

Post on 08-Jul-2015

354 views

Category:

Engineering


3 download

DESCRIPTION

Slides for "A gentle introduction to Web Map APIs" for Orbital students.

TRANSCRIPT

Page 1: Intro to Web Map APIs

Web Map APIsYos Riady | yosriady.com

Page 2: Intro to Web Map APIs

http://goo.gl/s6Y1w4

Page 3: Intro to Web Map APIs
Page 4: Intro to Web Map APIs

Can you name sites with interactive maps?

Maps on the Web

Page 5: Intro to Web Map APIs
Page 6: Intro to Web Map APIs
Page 7: Intro to Web Map APIs
Page 8: Intro to Web Map APIs

Agenda for today

Interactive maps

● Brief intro on Web Map APIs

● Hands-on tutorial

● Project time

● Q&A

Page 9: Intro to Web Map APIs
Page 10: Intro to Web Map APIs

What is an API?

API stands for:

a. Agricultural Price Index

b. Application Programmers Initiative

c. Asia Pacific Institution

d. Apple Products, Inc.

e. Application Programming Interface

Page 11: Intro to Web Map APIs

What is an API?

API stands for:

a. Agricultural Price Index

b. Application Programmers Initiative

c. Asia Pacific Institution

d. Apple Products, Inc.

e. Application Programming Interface

Page 12: Intro to Web Map APIs

Application Programming Interface

class MyWatch:

def turn(self, degrees):

complex_operationA()

complex_operationB()

complex_operationC()

def display(self):

complex_operationD()

complex_operationE();

Page 13: Intro to Web Map APIs

What are Web APIs?

● APIs connected through HTTP

http://maps.googleapis.com/maps/api/staticmap?center=-15.800513,-

47.91378&zoom=11&size=200x200

Page 14: Intro to Web Map APIs

What are Web APIs?

● APIs connected through HTTP (see geocoder.py)

http://maps.googleapis.com/maps/api/staticmap?center=-15.800513,-

47.91378&zoom=11&size=200x200

● API libraries/wrappers

Page 15: Intro to Web Map APIs

What are Web APIs?

● APIs connected through HTTP

http://maps.googleapis.com/maps/api/staticmap?center=-15.800513,-

47.91378&zoom=11&size=200x200

● API libraries/wrappers

● Sometimes free, often commercial

● Commercial APIs charge based on usage

Page 16: Intro to Web Map APIs

Web Map API Services

and many others!

Page 17: Intro to Web Map APIs
Page 18: Intro to Web Map APIs
Page 19: Intro to Web Map APIs
Page 20: Intro to Web Map APIs

Working with Web Map APIs

● Register for an API Key (where applicable)

● Include the Map API library’s CSS and Javascript files

● Read the API documentation

● Write map features using the API/library’s methods

● PROFIT!!!

Page 21: Intro to Web Map APIs

Today

Used by Flickr, Foursquare, Pinterest, Wikipedia!

Page 22: Intro to Web Map APIs

Introducing Leaflet

Page 23: Intro to Web Map APIs
Page 24: Intro to Web Map APIs

Hands On Time

Page 25: Intro to Web Map APIs

What we will be covering

● Basic Maps

● Tile Providers

● Markers, Popups, and more

● Events

● Geolocation

● Geocoding

● Routing

Page 26: Intro to Web Map APIs

github.com/Leventhan/orbital-leaflet/

Page 27: Intro to Web Map APIs

Project Super Fun Timehttp://leventhan.github.io/orbital-leaflet/

Page 28: Intro to Web Map APIs
Page 29: Intro to Web Map APIs

Where do I go from here?

Page 30: Intro to Web Map APIs
Page 31: Intro to Web Map APIs
Page 32: Intro to Web Map APIs
Page 33: Intro to Web Map APIs

Questions?Yos Riady | [email protected]