[OSM-dev] how to start developing java(blacberry) applications with openstreetmap?
SomeoneElse
lists at mail.atownsend.org.uk
Wed May 16 13:45:55 BST 2012
İhsan Koçak wrote:
> hi all.i searched the internet but i could not find anything.i just
> want to develop an appliction in blackberry that just shows a map plus
> able to put pins on the map.for this,what should i do(download jar
> etc.)?is there any example usage link?
I suspect that it depends a bit on what you're trying to do - are you
integrating an OSM map into an existing Blackberry Java application or
writing one from scratch? Do you want a vector map or will you be
generating map tiles somewhere and want to display them as the
background for your pins? Also (given that Blackberry are moving away
from Java-based devices) are you definitely sure that you want to use
Java and not WebWorks (with or without PhoneGap/Cordova)?
If Java isn't a requirement, and you're happy to either use external
tiles or hold a small number locally on the SD card, then I'd start here:
http://switch2osm.org/using-tiles/getting-started-with-leaflet/
It's possible (and very simple) to build a small Leaflet-based map, with
pins as a WebWorks application.
If you're starting from scratch and don't need to integrate with other
BB APIs (i.e. you can create a J2ME application) then I'd have a look here:
http://wiki.openstreetmap.org/wiki/Category:Java_midlet
and more specifically at GPSMid:
http://wiki.openstreetmap.org/wiki/GpsMid
For completeness there's also:
http://wiki.openstreetmap.org/wiki/Category:BlackBerry
but frankly there's not a lot of info there.
If you're happy to use the (non-OSM) "Blackberry Maps" as the background
but want to show OSM data, then you can use standard BB API calls to do
that, and overlay POIs that you've obtained via the XAPI or Nominatim:
http://developer.mapquest.com/web/products/open/xapi
http://developer.mapquest.com/web/products/open/nominatim
These are services that access OSM data, but hosted by Mapquest (so you
won't get the OSM admins moaning when your application has thousands of
downloads, all accessing OSM servers). Obviously you'll need to observe
the terms of use at the bottom of those pages - and any direct access to
OSM servers or APIs will have terms of use that you'll need to observe
too, such as:
http://wiki.openstreetmap.org/wiki/Tile_usage_policy
Cheers,
Andy
More information about the dev
mailing list