4. Maps on the Web
Can you name sites with interactive maps?
5.
6.
7.
8. Agenda for today
Interactive maps
● Brief intro on Web Map APIs
● Hands-on tutorial
● Project time
● Q&A
9.
10. 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
11. 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
13. What are Web APIs?
● APIs connected through HTTP
http://maps.googleapis.com/maps/api/staticmap?center=-15.800513,-
47.91378&zoom=11&size=200x200
14. 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
15. 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
20. 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!!!
21. Today
Used by Flickr, Foursquare, Pinterest, Wikipedia!