Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Latest news

Last at Tue, 6 Dec 2011 18:37:53
Topic: New BlackBerry sample app
See more news »

Google Maps

5 replies [Last post]
jaak
User offline. Last seen 12 hours 52 min ago. Offline
Joined: 06/19/2008

I have got many questions how to use Google maps. I am not giving any legal advice, but according to my understanding Google Maps terms of use does NOT allow to use them outside of their own API-s (Web maps APIs, MapKit, Android maps SDK) or web/wap browser (Static maps API).

From technical point of view, their tile API is (now) obfuscated enough, and URL changes from time to time, so it is complicated. Their Static Maps API allows technically direct requests of maps with specific API, but even this is not legally allowed with custom mobile application (IMHO). Just for experimenting you can use following line of code for their static map:

mapComponent.setMap(new GoogleStaticMap("GOOGLE-API-KEY-HERE", 256, 0, 19, GoogleStaticMap.IMAGE_FORMAT_PNG_32, GoogleStaticMap.MAP_TYPE_MOBILE, false));

/JaakL

Amri Shodiq
User offline. Last seen 9 weeks 2 days ago. Offline
Joined: 04/03/2010

Hi Jaak,
It's really good that this API support GoogleMaps also. I'm facing this problem. I used this snippet above. It works with a little funny thing. It shows Google logo in the middle of the Storm's screen. Then I tried to use another size (it's said that largest allowed size for the tile is 640). Then I got an IllegalArgumentException. Do you put a restriction to use size larger than 256?

If yes, why so?

Thanks in advance

jaak
User offline. Last seen 12 hours 52 min ago. Offline
Joined: 06/19/2008

Tile size has to be power of 2, in theory 512 might work; but there could be places in the code to limit to 256. Never tried it.

Anyway, you can get even with bigger tiles Google logo in the middle of map, also it will be significantly slower as user often needs to download much more map data. Also, according to my knowledge Google Maps static API can legally be used only in "web browser" client case, not directly in the application like our SDK uses it.

/JaakL

Amri Shodiq
User offline. Last seen 9 weeks 2 days ago. Offline
Joined: 04/03/2010

Also, according to my knowledge Google Maps static API can legally be used only in "web browser" client case, not directly in the application like our SDK uses it.

I agree with you. But in my case, Google Maps is the best choice among all because it's data is the most complete. Btw, Nutiteq able to hide another map logo, why don't Google maps?

Is it because of the TOC?

jaak
User offline. Last seen 12 hours 52 min ago. Offline
Joined: 06/19/2008

Yes, google maps has good coverage in most places. But it has been also very expensive to have so good coverage, this is why they have very strict rules. Or you would need to use also expensive sources which do not have the limitations (e.g. MapTP).

What do you mean by hiding the logo?

/JaakL