Slide 1

Slide 1 text

Advanced map techniques November 9 2015

Slide 2

Slide 2 text

The Great Subway Map War of 1978

Slide 3

Slide 3 text

Arriving in Berlin

Slide 4

Slide 4 text

Types of maps Go from A to B Visualise information

Slide 5

Slide 5 text

Types of maps “Ten years ago, maps were all about a navigation-use case. We looked at streets, addresses, POIs, maybe a little traffic. That's not true today. Today, it's about imagery, social media, real-time content, and much more. And three years from now, there will be only more data”—especially as location-based sensors increasingly populate the built environment. Marc Prioleau

Slide 6

Slide 6 text

Getting Data

Slide 7

Slide 7 text

Evaluating datasets

Slide 8

Slide 8 text

ParisData: http://opendata.paris.fr/

Slide 9

Slide 9 text

ParisData datasets ● Museums 59 elements, 39 kB ● Theaters 88 elements, 38 kB ● Schools 670 elements, 285 kB ● Green spaces 942 elements, 5.9 MB ● Addresses 145459 elements, 88.2 MB ● ...

Slide 10

Slide 10 text

Yelp & Foursquare

Slide 11

Slide 11 text

OpenStreetMap

Slide 12

Slide 12 text

Buildings

Slide 13

Slide 13 text

Buildings

Slide 14

Slide 14 text

Navitia.io: transportation data

Slide 15

Slide 15 text

General Transit Feed Specification (GTFS) Standard format for public transportation data. Zip archive of CSV files: ● agency.txt ● stops.txt ● routes.txt ● trips.txt ● stop_times.txt ● calendar.txt Optional: fares, transfers, shapes (map)

Slide 16

Slide 16 text

Be careful about the licenses Open Database License (ODbL): Constraints: attribute, share-alike (copyleft), keep open Used by: OpenStreetMap, ParisData, Stif Etalab / License ouverte: Constraints: attribute Used by: ParisData License NIO: Constraints: ? Used by: Navitia

Slide 17

Slide 17 text

Putting data on the map

Slide 18

Slide 18 text

AirMapView AirMapView Google Maps Google Maps Web MapBox

Slide 19

Slide 19 text

Data representation: markers

Slide 20

Slide 20 text

Data representation: clusters Good : Bad :

Slide 21

Slide 21 text

Data representation: clusters ClusterManager clusterManager = new ClusterManager(this, getMap()); getMap().setOnCameraChangeListener(mClusterManager); InputStream inputStream = getResources().openRawResource(R.raw.radar_search); List items = new MyItemReader().read(inputStream); mClusterManager.addItems(items);

Slide 22

Slide 22 text

Data representation: areas Standards: ● GeoJSON (ParisData) ● ● ● ● WKT (Navitia : Stif) ● KML (Google Earth)

Slide 23

Slide 23 text

Data representation: GeoJSON try { GeoJsonLayer layer = new GeoJsonLayer(map, new JSONObject("...")); layer.addLayerToMap(); } catch (JSONException e) { e.printStackTrace(); }

Slide 24

Slide 24 text

Point inside polygon

Slide 25

Slide 25 text

Data representation: Heatmaps

Slide 26

Slide 26 text

List coordinates = getCoordinatesList(); HeatmapTileProvider provider = new HeatmapTileProvider.Builder() .data(coordinates) .build(); TileOverlayOptions overlayOptions = new TileOverlayOptions().tileProvider(provider); getMap().addTileOverlay(overlayOptions);

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Heatmap: Isochrone

Slide 29

Slide 29 text

Representation for the amount of data A few Way too much Data points Markers Clusters Heatmaps

Slide 30

Slide 30 text

Further reading AirMapView: https://github.com/airbnb/AirMapView Android map utils: https://github.com/googlemaps/android-maps-utils Sample: https://github.com/acq/AndroidMapSample Slides: http://speakerdeck.com/acq/advanced-map-techniques

Slide 31

Slide 31 text

Thank you! @AdrienCouque

Slide 32

Slide 32 text

The Great Subway Map War of 1978: http://www.theverge.com/2015/10/29/9630862/new-york-city- subway-maps-mta-google-gps Arriving in Berlin: http://umap.openstreetmap.fr/en/map/arriving-in-berlin-a-map-made-by-refugees- english-_42855 “Vrai plan du métro”: http://carto.metro.free.fr/documents/CartoMetroParis.v3.9.png Transport heatmap: http://vernier.frederic.free.fr/Infovis/horizonMaps/ Isochrone: http://www.atelier01.net/metro/paris/isochrone OpenStreetMap: http://wiki.openstreetmap.org/wiki/ RESOURCES