I am really new for android development and first of all I want to be sure if the approach explained below is possible or not. I have a longitude and attitude data coming from GPS and I want to display an arrow symbol on a Google Map android application. Is it possible? In addition to this, I want to draw line for indicating the road the vehicle passed that I track by GPS. Is there such a kind of implementation samples? I have a look at many videos and Web sites but have not found such a sample exactly performing these requirements. Could you please clarify me regarding to this issue?
Yes possible...see these links..
https://developers.google.com/maps/documentation/android-api/
https://developers.google.com/maps/documentation/android-api/code-samples
https://developers.google.com/android/reference/com/google/android/gms/location/FusedLocationProviderApi
https://developers.google.com/android/reference/com/google/android/gms/maps/MapView
https://github.com/googlemaps/android-maps-utils
https://github.com/googlemaps/android-samples
https://www.pubnub.com/blog/2015-05-12-broadcasting-realtime-location-data-for-android-live-updating-map/
Happy coding!!
Related
I am working with android studio for last few days, and I am pretty new here with this work. I am trying to implement a location sensor app. The basic idea is if my phone enters into some restricted area (would be predefined in app), some voice message will be popped up, Surely I have to keep the app running on background to test this. I headed with FusedLocationProviderClient and implemented a very basic getmylocation app for now, where my actual obstacle I found. The co-ordinates keep fluctuating all the time for a same place after the decimal points by some values[(xx.xfffff,yy.yfffff) where f are the fluctuating figures,and the app is supposed to work on the truth of that figures], so the sensor can never implemented if the measurement is wrong.
Anyone having idea, how to fix this or may be there are better alternatives to implement this thing? I am pretty new to this work, so I would request you to give explanation or some attachment/article links in support of your answer so that I can get things clear and straight forward.
If any details is required from my work, Please mention , so that I can update this question on next round edit.
Thanks in advance.
I'm trying to achieve routing "walking path" inside specific premises (Hospital). I'm using osmdroid and osmdroid bonus pack. I have spend losts of time. Still not success. Does anyone achieved like this.
By now i tried
roadManager.addRequestOption("routeType=pedestrian");
and all other available rooting types available here
and it gives result only where roads available.
Can someone suggest the right way to do this?
Thanks in advance.
I'm trying something as below.
This is a tough one for a few reasons.
Osmdroid has issues as zoom levels > 20. In fact, 20 should be your max. Finding a map source for zoom 20 is also difficult, however the mapsforge adapter should help with that. You'll need a high zoom level in order for this to be useful to the user.
OSM data is generally a series of nodes and paths that connect the nodes called ways. The vast majority of these nodes and ways are for roadways. These nodes and ways are the only thing we have for calculating walking or driving directions. You should be able to get directions to the closest address.
If you have osm data for inside the building, that's great, but now you have a GPS/location issue. GPS generally doesn't penetrate indoors.
So no real answers here, but hopefully this will help you identify some of the challenges ahead.
Is there any workaround get exact location inside building or still it's not possible..
I've checked few things like
https://developer.foursquare.com/docs/venues/venues
http://www.walkbase.com/
http://www.directionsmag.com/articles/10-things-you-need-to-know-about-indoor-positioning/324602
But didn't able to find what I want!!
I want my app to know weather user in in particular restaurant or not!! I'v also tried http://developer.android.com/training/location/geofencing.html
but not sure how to use it..
It'll be great if someone help me with where to start and which is best?
Thanks :)
no it is not possible. some companies experiment: for some buildings, that have to be measured to the specific technologiy that those companies use, it may work a bit, but not in general case.
if you want to know the restaurant, enable gps before the user enters the restaurant.
that way you get the position via gps when the user stands before the restaurants door.
as long as the restaurant is not inside a huge indoor shopping center, chances are good.
Hey guys i am looking for an application that can navigate inside a mall.We can adopt the idea of inputting our current location through a QR code or by taking a snap of any near landmark(like shop,name boards..),Then we can input where we want go?But the actual problem is How to build a map of the indoor?Can u suggest any such tool to create a map for android phones.Because after creating the map by programming the gyroscope sensor in android for proper routing,because application now knows the source and destination,so i think it can display the shortest route(like GPS),then we can start walking through that path with our phone.Whenever we violates route using gyroscope we can track it.I think it is possible,if we turn left instead of taking right then app will direct us it is a wrong way.But i need help to create the map.Can anyone please suggest any idea?
my email:anishubais#gmail.com
please----
I might be wrong, but I think that going off of GPS would be inaccurate. If I remember right, GPS is only accurate up to 10 meters or something like that.
Like I said, I might be horribly wrong, I'm just going off of what I remember
I have been looking to implement a map in my website, and have really hit a brick wall - Have read so much, but am very confused. I just wonder if someone could offer a little help?
I have developed an Android App which generates a list of lat/long pairs and stores them in a remote MySQL DB. All I want to do is mark these points on a map, with a little pop up when clicked, indicating some other information about the user.
I have so far looked at Google Maps API and OpenStreetMap, although I really don't know where to begin! I don't know whether I should use Google Maps, as I'm concerned about the API query limit? Should I be?
Would really appreciate it if someone could point me in the right direction!
Thank you
Showing some markers and popups isn't really complicated with OpenStreetMap and OpenLayers:
simple OpenLayers marker example
dynamic markers from a database (example result)
Use google maps javascript v3 and make the required changes
Please refer
https://developers.google.com/maps/documentation/javascript/
The Google Maps API limit is something like 25k (or was it 250k?) per day - so unless the app you're making proves to be really popular, you won't have to worry about it