Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm trying to make an Android application that displays a map of a Park and when a user taps on a certain location on the map, the application goes to another screen.
Problem is that currently my map of the park is in a .jpg format. Which mapping API is best for my application and how would I go about converting this .jpg map into a format that is accepted by the API.
Thanks!
Adding an overlay for Google maps with a custom map is pretty easy to do, the sample code works out of the box.
To overlay the map you need to have a rough idea of the gps coordinates of the park. There is the sample code for overlays using a jpg is here: https://code.google.com/p/android-maps-extensions/source/browse/google-play-services-samples/src/com/example/mapdemo/GroundOverlayDemoActivity.java?r=fd7175206a82da6d87b773e968d52849b4c107fb
Clone the entire project and import it into Eclipse:
git clone https://code.google.com/p/android-maps-extensions/
After you have it running and installed on your device, you will want to get an API key here:
https://code.google.com/apis/console
Full instructions are here if you get stuck:
https://developers.google.com/maps/documentation/android/start
There are other demos to make your map more useful for example:
traffic info to get to the event/park
a 3D perspective if you want for eye candy
GPS of users current location with relation to the park
make the overlay opaque, or slightly transparent
custom markers so the user can tap and open another screen
Well, you can use the google maps api v2 in android, and you create an Overlay map and implement the getTile, here you can find more info:
https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/model/TileProvider
but the only thing is, change the properties in order that the maps ask for the tile you want to send, lest say that you have 4 tiles for your map, so use a zoom level that only allows 4 tiles to be delivered and then you return the corresponding tile to the map.
also you have to set the type map to NONE.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I want in my app (Android 4.0+) use offline maps (map of the city or small area). User should choose the area or city and then, the app should download the data or the data could be in assets.
Or can I somehow get the access to the data from Google Maps app, if the User downloaded some area, so the data should be in the phone?
App will not be on Google Play.
What way do you recommend? Use OpenStreetMap? Some other solution?
Based on the area you what to use in you app, OSM can be much better than Google and obvious the data is free and daily improved. Here is a question with a list of alternatives to Google API: Alternatives to google maps api
I recommend you to take a look for offline maps using OSM data at these libraries:
osmdroid : there is a bonus library for routing called osmbonuspack that adds lots of routing and POI functionality
skobbler has an SDK supports offline mode and is able to render maps & display turn by turn navigation on your Android phone. Here is their developer platform
OsmSharp also does offline rendering of vector-data and turn by turn navigation. The code is available on github
mapsforge: offers the map data in vector format and is working with another library called graphhopper in android
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need to make an android app which will show some specific places in a map. and I want to use GPS for tracking user place and showing him the direction. but I want to assume that there is no Internet access at all because I want my application works completely offline.
which map i have to use and how ?
I appreciate any help !
but I want to assume that there is no Internet access at all because I want my application works completely offline. which map i have to use and how ?
There may be ways to use OpenStreetMap's OSMDroid library and package its map tiles with the app. The only apps I have used with OSMDroid have downloaded tiles after the app was installed, perhaps due to size.
Google Maps Api v2 or v3 is ideal.
See the accepted answer here:
Using the android Google Maps API v2 as a viewer of offline tiles: is it possible?
Always search Google for answers first. A simple search "Google Maps api using offline android" showed me the above link as the first result!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Does anyone know how to create a 2D building map for example a mall, and also locate or pinpoint the user current location? My classmate told me to use Google Maps API, but I prefer not to use it.
I've a friend that swears by OpenStreetMap so if you don't want to follow the Google route then this could be a good option. They too are interested in creating maps for indoor space and lots of information can be found here:
http://wiki.openstreetmap.org/wiki/IndoorOSM
I'm no expert, but by the looks of it, it seems as if there are tools, such as JOSM, which allow you to create the indoor maps - a quick start guide to using JOSM indoors can be found here. It does seem to assume that you have floor plans of a building. As far as I'm aware (correct me if I am wrong) there is currently no software, that lets you walk around a building creating a map!
Locating a users current location is difficult. GPS tends not to work in indoor spaces, so you need to consider which would be the best option. Additionally if you are working with a multi-floored building then you need some method to work out what floor the user is on. There are a number of possible solutions:
Attach GPS Antennae to the buildig and use a repeater to boost the coverage to the rest of the building
Google uses wi-fi networks and mobile masts to determine location. If you want to know more about this approach check out WifiSlam. They're now owned by Apple but there are some interesting articles in the top 10 or so search results of Google about them and this technology!
Use image recognition to determine the users location. You could use something like Google Goggles. Users could take images of the room-numbers/shop-signs/QR codes which are then processed followed by a location being provided
None of these are particularly easy, so perhaps a different approach could be taken!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have succeeded to determine the walking direction and the distance of a person.
I then wish to plot his or her position on the screen.
How may I do that?
I understand the question may not be that specific, but what I wish to get from you guys are just some ideas.
e.g. which section should I read in the Android Development website or which external library should I import to help?
Use googles LocationClient to get location updates. On every update get the lat and long of the position provided.
You can use Location Client along side google maps to plot location data. Every update you will just remove your marker and place it at the new location. Note you do not have to remove you marker. Then you will have a plot of the locations that you were at. I have seen trail programs that use this to plot hiking paths.
http://developer.android.com/reference/com/google/android/gms/location/LocationClient.html
There is also a locationmanager that will let you work a little more with the location providers.
http://developer.android.com/guide/topics/location/strategies.html
Here is an example program on the android dev site.
http://developer.android.com/training/location/retrieve-current.html
If I understand correctly, you are looking to plot this data in a graph. I would highly suggest using AndroidPlot (http://androidplot.com/) from here you can download their sample code to make a simple graph.
If you are looking to then to then show the person how far they went and for how long you can plot this data pretty easily in a graph.
If you really wish to show this data on a map then you do not want to use AndroidPlot.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
Improve this question
i'm developing a commercial android app that shows a offline map (whithout requiring internet connexion.) This map is a binary vector map that it is rendericed to display the map offline.
The binary map is generated from a OpenStreetMap xml map.
This app will have cost, it's for a commercial project.
SHould i put something like "OpenStreetMap ©" in the mapview when i'm displaying the map ?
i can't find any clear guide about that on openstreetmaps website.
Please refer this link I would like to use OpenStreetMap maps. How should I credit you:
Their requested attribution is "© OpenStreetMap contributors".
Because OpenStreetMap is its contributors, you may omit the word "contributors" if space is limited.
Direct your readers to openstreetmap.org (perhaps by expanding 'OpenStreetMap' to this full address), to opendatacommons.org
Where to put it
For a browsable electronic map (e.g. embedded in a web page or mobile phone application), the credit should appear in the corner of the map, as commonly seen with map APIs/libraries such as Google Maps, or an about box/page.