I have a Game idea which uses Google Maps data, and I wanna know how I can do this.
The idea is:
A online war game that is based on the localization of the players' phones, which I would use Google Maps to get the cordinates and draw the map on the screen, so I can draw icons on the map (ammo, medicines and etc). And when the player's cordinates meet the item's cordinates it goes to the player, for example.
Simplifying, what I have in mind is: I need to get player's cordinates and map images from Google Maps. How I can do that?
Sorry for the bad english.
Thanks,
Luís Henrique.
I recommend starting with this tutorial.
http://www.vogella.de/articles/AndroidLocationAPI/article.html
That will get your feet wet in loading up maps.
Then use this tutorial at the bottom it will reference itemized overlay which will enable you to add all the weapons and respond to events when you click on it.
http://developer.android.com/resources/tutorials/views/hello-mapview.html
Your game sounds fun!!!
You can check cloudmade's specialist tools
Also there is static maps api from cloudmade
U can check a list of apps/games made using this here
Related
Is it possible to display in house map using MapBox in Android?
For example : I am in one mall and I want to know that what are the directions of particular shop in one mall or I want to know that how many shops of cloths are there in one mall using MapBox?
All your answers and suggestions are valuable and appreciable for me.
Looking forward to your reply.
I am using MapBox Android SDK : https://www.mapbox.com/help/first-steps-android-sdk/
Just to clarify, you are trying to create an indoor map using the Mapbox Android SDK correct? If that is the case, you can follow this guide to tracing the indoor map you have and create a tile set. You then can use it within your Android app by following this example.
Hope this helps
Very sort answer is yes it is possible,
For inhouse may you have to create custom geographical area image for particular mall and its floor
Here is some reference for your idea video for concept here is one concept of showing indoor image either by web service or you can also
Create your own drawable image for indoor map
I need to implement a map for a shopping mall in my app. This map needs to have a way to visually mark the fastest path to go from one place to another.
I currently have two options in mind. I could use the Google Maps API, overlay the shopping mall's picture and try to use some algorithm to mark the best route. Or, I could just place the picture and manually make an algorithm to mark the path (probably Dijkstra).
Yet, it's my first time working with Android, and I don't really know which one could work the best, and which libraries I could use.
I'd appreciate any tip or suggestion.
Google map has an android api that you can directly embed google maps into your application. You can also draw overlays using its api. Take a look at
google map android api
I am developing an android application for showing the floor map of a building inside google maps. I know there is Google floor plans, but it only available in selected countries. So I need to customize the google map. I am done a little by using the accepted answer in this link. But unfortunately I cant adjust the boundaries of the tiles here, thats not I needed. I only need to show the custom floor map only above the building i need to show, other area should be like the default Google maps. How can I achieve that?
Any help will be appreciated. Thanks in advance.
You could use GroundOverlays, which is a simple image which is shown above the map tiles as you define via geo bounds. See more here
How can I use Google maps in Android app so that it only shows my country?
I mean so that the rest of the world is not featured in the application.
Check out one of Mike Williams' great GMaps tutorials - he shows you how to limit zoom and pan in your map.
If you want some areas to be non-visible, you can try this one: I think that's closest to what you want (the example actually does a similar thing to what you want, using USA as the example).
I built my application using Google Maps and it is using:
-BalloonItemizedOverlay
-BalloonOverlayView
-ItemizedOverlay
and what it does:
-Displays multiple points on map, each one clickable and balloon appears with relative text + description.
-Displays and updates the marker/point of user's position.
The only reason I want to switch to Open Street Map is because I would like to use the feature "caching map tiles" (presaving maps) which as far as I have looked it up is not allowed with Google Maps.
Can someone help me convert my application thoroughly to use OSMdroid instead of GoogleMaps? Providing me with some guides (very few support for OSMdroid at the moment...)
I have already looked up a lot of codes but they mostly differ in comparison with Google Maps and I can't seem to get it all right. I have managed to display user's location on the map but adding BalloonItemizedOverlays and so on is a hassle.
Anyway just help me out in any way you can - proposals on how to do it, sites with guides, anything :)
Thanks
http://code.google.com/p/osmbonuspack/wiki/Tutorial_1
http://code.google.com/p/osmbonuspack/wiki/Tutorial_2
I think these two tutorials should get you started with Balloons and Customized Balloons
Itemized overlay with osmdroid is quite easy to use, you should give it a try and you will get the feel of it once you try it our.