49
Speaker : Alexey Zinoviev Android Geo Apps: In Soviet Russia latitude and longitude find you

Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Speaker : Alexey Zinoviev

Android Geo Apps: In Soviet Russia latitude and longitude find you

Page 2: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

About

● I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms.

● But I'm a programmer, so I'm interested in NoSQL databases, Java, Android, Hadoop, Spark.

● I am a fan of variety GEO API (Maps API for example)

Page 3: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Introduction

Page 4: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Some maps are extremely old

Page 5: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Some maps are inaccurate

Page 6: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Some maps are used in games

Page 7: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

And, of course, some maps are realistic

Page 8: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Geo applications are a specific

type

● Maps are optional

● Geo content in your app

● There’s a mobile aspect

Geo apps

Page 9: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Revenue

Page 10: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Localizing Content

Page 11: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Managing Digital Rights

Page 12: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Popular commercial sites pay for

usage

● Limits

● Google Maps for business

● AdMob integration

● Time in app

Google’s profit

Page 13: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Media content with geolabel

● Places, addresses, organizations

● Wiki

● Type of activity

● Individual tracking

● Purchases

Data

Page 14: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Analyze it!

Page 15: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Targeting Advertising

Page 16: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Data sources

Page 17: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Cell of Origin : finds location by

CellID

● Time of Arrival (TOA)

● Observed Time Difference (OTD)

● A-GPS : starts from base stations

LBS (Location Based Services)

Page 18: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● GPS guzzles battery power

● GPS is often inaccurate

● People active in more than 10

times

Why LBS?

Page 19: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Geo Technologies

Page 20: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Latitude & longitude

● Latitude is y, longitude is x

● But it looks like this: (y, x)

● To indicate the cities, regions and

countries you need diffirent

coordinate precision

● Spherical geometry

Latitude and longitude

Page 21: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Mercator Projection

Page 22: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms
Page 23: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Maps

Page 24: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

The Maps Family Let's map everything on the map

Page 25: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Convenient controls (zoom)

● Geocoding

● Routing

● Layers

● Gestures

● Showing traffic jams and public

transport (optional)

Opportunities of Respectable API

Page 26: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● v2 with 3D rendering

● Gesture control

● Best support and documentation

● Heatmap & clustering

● Simple integration with location API

● Best demos

Google Maps

Page 27: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Heatmaps

● Marker’s icon customizing

● Clusterization

● Customizing of marker clusters

● Calculating distances and areas

(spherical geomatry)

Android API Utility Library

Page 28: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Template project in Android Studio

● Obtaining API key in Google Developer Console

● Changing Manifest and Gradle build script

● Playing with examples

● Debugging on the real device

● Updating GooglePlay services on the virtual devices

How to attach Google Maps?

Page 29: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● This SDK was designed to work with

Android 2.x devices

● Best photos from space

● Excellent coverage in the U.S.

● Supports geocoding, reverse

geocoding, and routing

Bing Maps SDK

Page 30: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Excellent coverage in Russia

● More attractive on iOS

● No direct geocoding

● Development was stopped

● No special limits

● 25,000 geocoding requests per day

Yandex Map Kit

Page 31: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Data from OpenStreetMaps

● Best coverage in the world

● Development by community

● No routing & traffic jams

● Tiles from MapQuest + OpenLayers

● Fork & control code :)

● Offline maps via MobileAtlasCreator

OsmDroid

Page 32: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Add osmdroid libraries to CLASSPATH

● Include slf4j-android logging library

● Add a MapView to your xml layout

● Add permissions to manifest

● If it is required, create a tile provider chain

● If it doesn’t work, copy simple example

How to build OSM app?

Page 33: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● Modern JS API and ancient Android

API (waiting new Android SDK)

● Geocoding, routing, traffic plugins for

Leaflet (JS Library)

● Simple features without key and

advanced features by API key

MapQuest

Page 34: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● OsmDroid fork

● Free for 50k views in month

● GeoJSON and TileJSON support added

● Data objects like points and lines use doubles instead of the

E6 int convention

● Small separate modules for different tasks

● See github

MapBox

Page 35: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Home OSM server

Page 36: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Home OSM server

Page 37: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

● PostrgreSQL/PostGIS

● osm2pgsql

● Mapnik (rendering of OSM data)

● Ruby magic

● Grab OSM data (planet dump)

● Quick ref here

Home OSM server

Page 38: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Waiting for signal ...

Page 39: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

If you developing a project for...

● a U.S. company - Bing Maps● a transnational company - Google Maps● a Russian company, or one in in the former U.S.S.R. -

YandexMapKit● OpenSource with special tiles - MapQuest + OpenLayers● OpenSource with its own data - OsmDroid● Tuning OpenSource and paid API - MapBox● … just to play - NokiaMaps

Page 40: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Popular Cases

Page 41: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Checking in

Page 42: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Local trade

Page 43: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Next generation of games

Page 44: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Local deals and offers

Page 45: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Publishing and distributing content

Page 46: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Journalism

Page 47: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Your Country Needs You!

● Know your cases and data!

● Choose right SDK!

● Don’t overlocalize!

● Steps to real life

Page 48: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

GDG Saint Petersburg Android & Cloud

● Cloud Backend + Mobile

● Android Wear, Smart TV

● Atypical model of

participation

● ВК, G+

Page 49: Android Geo Apps: In Soviet Russia ... - 2015.mobius-piter.ru · About I am a scientist. The area of my interests includes machine learning, traffic jams prediction, BigData algorythms

Your Questions?