How to use OpenStreetMap in native android app development [closed] - android

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Hello I have the default android " Dummy Content " native app build in my android phone.. now I need to use the open street map applicaiton and intergrate it into this build with a GPS location ..
I could not find any infos in google search.. can any one help me with the links or suggestions?
Also which is better and ease of doing? Google maps or open streep maps in Android Devices...
please let me know.

If you want to show map content you can do it with Google Maps (already in Android libraries), or you can use different map data (e.g. OpenStreetMap).
There are two known communities amongst others, who developed a Android Library for OpenStreetMap data maps:
http://code.google.com/p/osmdroid/
https://code.google.com/p/mapsforge/
At today, the Google's Google Map View is the most easy to use API. Unfortunetly it's commercial in some points. For example, you are not allowed to develop an application showing google map content in combination with turn-by-turn guidance (cf. Google Maps Terms of Service: https://developers.google.com/maps/terms?hl=en ). In opposite, OSMDroid is free to use for everything.
There are many tutorials in the web, which teach step by step how to show the GPS location of the device on a maps content in your application. Some of them are:
Google Maps: http://www.androidhive.info/2013/08/android-working-with-google-maps-v2/
OSMDroid: http://android-er.blogspot.de/2012/05/display-current-location-marker-on.html
EDIT:
I received some question about if a turn-by-turn guidance navigation app is possible to implement (and publish). The answer is yes.
On a license view, you must not use googlemaps, but e.g. OSMDroid is fine here.
I have done this myself once using OSMDroid as a mapview library and OSMDroidBonusPack as Routing, Geocoding and reverseGeocoding library (the bonuspack has several more features, see all at the git repository
I wanted to provide another link to existing navigation apps implemented by using OSMDroid, but it seems they are no longer maintained for updates.

Take a look at AnyMaps, it allows you to use OpenStreetMap as one of the options while having API which is close to Google Maps:
https://github.com/car2go/AnyMaps

Check out https://github.com/zsoltk/overpasser. It's a Java library to ease working with the Overpass API.
It generates the Overpass query string for you
It comes with a Retrofit adapter
It has an Android sample showing how to put them all together and show your OpenStreetMap data on Google Maps

Related

Can I use google earth or google map static 2D images as background in a Unity android game? [closed]

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 1 year ago.
Improve this question
I can´t find nothing about this and google permissions doc are very abstract.
So, can I use google earth or google map 2D static images top-down, without street names or any other info, as background in a google play android game made in Unity?
Thanks in advance.
I really want to emphasize this, because Google couldn’t make it clearer that attribution is absolutely required. It adds in the “Frequently Asked Questions” that “Without exception, we require attribution when Content is shown. Please do not ask to negotiate this requirement.”5 And it clarifies for Google Earth: “You can personally use an image from the application (for example on your website, on a blog or in a word document) as long as you preserve the copyrights and attributions including the Google logo attribution.
There are other limits spelled out on Google’s permissions page — you can’t create your own map by tracing a Google Map, for example. So anybody who wants to use images from Google Maps or Google Earth should read through the limits carefully.
But within those limits, Google says, you can use images in reports, presentations, on the web, in a print project. You can even use them in an advertisement.
About the only place you can’t use them is “in items for resale (i.e., t-shirts, beach towels, shower curtains, mugs).
In Short - you can use but don't change map image

Google Maps: why do I get referer-not-allowed-map-error? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I have an Android app (outside the Play Store) that uses a HTML page with a Javascript that calls Google Maps. I get a referer-not-allowed-map-error when creating the API as Android app. I need to set restrictions to NONE for this to work properly. The app is signed properly as debug.
Why is this? How can I restrict the API?
Android app restriction is not valid for Google Maps JavaScript API. This restriction is only used with Google Maps Android SDK and Places Android SDK.
Have a look at the following document that explains which type of API key restriction you can use with Google Maps APIs
https://developers.google.com/maps/faq#keysystem
In order to solve your issue, I would suggest checking the value of window.location.href in your HTML page when you load it from Web view in your Android app. This value will contain string that might be used as HTTP referrer restriction for Maps JavaScript API. Note that file:// protocol requires special representation as explained in
https://developers.google.com/maps/documentation/javascript/get-api-key#key-restrictions
I hope this helps!

Does Street View has any cost? Can I use it on Windows Phone systems? [closed]

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 want to develop an application for Android, Ios and Windows Phone. This application uses in huge way street view / augmented reality..
So my questions are:
Use Street View in my app has any cost or is it free to use?
Is possible to use it on Windows Phone / IOS?
Thank you very much!
Yes it is possible
For Android : its free of cost , you only need to use Map Api(register by email)
For IOS : I dont think you need extra cost for using api, procedure might be different
http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MapKit_Framework_Reference/_index.html
For WINDOWS phone 7 http://dotnetbyexample.blogspot.in/2010/10/google-maps-for-windows-phone-7.html
accept answer kindly if it is helpful any problem , please tell me
In Windows Phone 7 you are free to use Bing Maps but you must first have a developer account at bing :) and that's very easy. This link will guide you to how to get bing map key and it is for free Getting a Bing Maps Key
In Android Google Maps will achieve the Job but in IOS I don't know :)
This is a link will help you using google maps and how to get the key
Android Google Maps tutorial
Be aware that according to the Bing Developers' blog, MS is going to start charging to use the Bing Search API soon: http://www.bing.com/community/site_blogs/b/developer/archive/2012/04/12/bing-dev-update.aspx

Why is Google Maps Library for android so out of date?

I'm an Android platform newbie looking to port some of my Windows
Phone 7 mapping apps over here. My WP7 apps use Bing Maps which has
current maps and POI data.
I went to the Android Developers Resources center where it shows how
to develop an app using the Google Maps Library. I did that and
noticed that the maps were over 7 years old.
I posted that issue on the google groups forum and was told that Google had
apparently given up on that library. (Strange that they still feature
it in their developer resources site.)
So, if they have given up on that library, is there another library
they haven't given up on? It seems odd that Google would give up on
Google Maps (bad strategy).
What tools, libraries, etc. should an android developer use that wants
to write compelling mapping applications that can show maps, POIs, directions that use current
maps and data?
Thanks
Gary
Bing maps are not up to date ( I tested them and I can see a building that has over 3 years and still doesnt appear on bing maps). Alternatively to Google Maps, you could use Ovi Maps or your own custom maps.
My original post here was from my experience writing the android "HelloGoogleMaps" application and running it in the emulator. I navigated to my own location and saw that my whold track where I live was still natural land. This made me think that the Google Maps were way out of date. This was the general feeling of some other developers on another forum. I went to online Google Maps on the web and my tract was there so this made me think it was the MapView software that was out of date.
Today, I went back to that HeloGoogleMaps application, and again navigated back to my tract and it was there! I don't know what happened but the map is up-to-date now.
Sorry for the bogus post.
Gary

Downloading/Caching Google Maps for Offline Use [closed]

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'd like to be able to implement this in an Android app, and I thought it was possible with the newest Google Maps API release, but I haven't seen much discussion on the topic. Ideally, you'd be able to download/cache maps for a certain region for later offline use. Is it only possible to do this via the Google Maps 5 application and not the API without violating the ToS? I know OpenStreetMap and others allow this, but I believe Google Maps still offers superior mapping and the most widespread usage.
Thanks in advance.
Downloading and caching the Google Maps assets is against the Google Maps API TOS.
Check the TOS section 8:
License Restrictions. Except as expressly permitted under the Terms, or unless you have received prior written authorization from Google (or, as applicable, from the provider of particular Content), the license granted to you in Section 7 is conditioned on your adherence to all of the restrictions in this Section 8. Under this Section 8, you must not (nor may you permit anyone else to):
8.2. copy, translate, modify, create a derivative work of, pre-fetch, cache, or publicly display any Content or any part thereof.
Is it only possible to do this via the Google Maps 5 application and not the API without violating the ToS?
Correct, though AFAIK it's not even physically possible with the API.
There are 3rd party Maps API-s which enable to do this, like Nutiteq maps SDK. Not with Google maps, as it is really against their ToS, but with Bing (with Enterprise license), OpenStreetMap (free) or other map sources.
Disclaimer: I'm developer of it.
You can try to use GoogleMapsRipper 2.0.4 from http://www.blueblackworks.com
GoogleMapsRipper is mapping software that allows you to download both satellite imagery, topographic and road maps from Google Maps, Bing Maps and OpenStreet Maps.
According this 10.1.3(b) you can do it temporally on mobile device.
This project implement it, I can't provide particular example but you can dig in into it coz it open-source.

Categories

Resources