google maps - How to check nearby any road is there or not by using lat/long values in android -


i developing gps tracker application android, , trying track bus route , show in google map, getting latitude , longitude value of bus location bus moving or not moving also.

my problem:- bus moving on road , getting lat/long values , throw in google map. problem marker moving on building,river bus going on road

my requirement:- marker should move on road not on building suppose if lat/long values off road(outside road) should check near road there or not if there marker has locate on road

how check nearby road there or not using lat/long values

could please me?

there google maps roads api has snap road feature. have sample app android explains how use it. specifically, see this file project.

other that, need key beyond normal google maps one.

this app requires 2 keys before run, 1 google maps api android , 1 roads api.

to obtain google maps api android key, follow instructions in api's getting started guide , add google_maps_key field in app/src/debug/res/values/api_keys.xml.

to obtain roads api key, follow instructions in api key section of roads docs , add google_maps_web_services_key field in app/src/debug/res/values/api_keys.xml.

and import project

compile 'com.google.maps.android:android-maps-utils:0.3.4'


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -