Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The real choice here lies in whether to use a RESTful API like the Google Static Maps (or Nokia's <a href="http://developer.here.net/map_image" rel="nofollow noreferrer">RESTful Maps</a>) or to use a native Java ME mapping library plugin such as the <a href="http://developer.here.net/java" rel="nofollow noreferrer">Nokia Maps API for Java ME</a>. The latter has several major advantages:</p> <ul> <li>Static mapping services such as the Google Static Maps API or Nokia's RESTful Map API do not cache or tile the images when requested, therefore each request involves a round trip to the server. If the map on a mobile application needs to be refreshed at any time, using a caching library will result in a reduction in network traffic after around three maps have been displayed. An explanation of this can be found <a href="http://www.developer.nokia.com/Community/Wiki/Using_the_RESTful_Map_API_with_Java_ME#Comparision_of_Network_traffic_generated_by_the_RESTful_Map_API_and_Maps_API_for_Java_ME" rel="nofollow noreferrer">here</a></li> <li>As the name implies, Google's Static Maps API can only retrieve over http static images for a requested coordinate point, image size, image type and zoom level. Newer libraries offer additional functionality out of the box offering dynamic Map content and touch support, where the user can move around his/her current position, zoom in, zoom out, modify the view mode to satellite or translate an address to a coordinate point and show that on the map, among others. This abstraction of the underlying functionality is hidden from the developer so much less coding is needed in order to achieve the same result .</li> <li>Terms and Conditions for Nokia Maps are easier to fulfil than Google - No legal restrictions of using the API outside a web browser application or need to provide a link to the native Google Maps App (if there is one), or to Google Maps (if there isn't one).</li> <li>Nokia currently offer higher free daily request limits. Nokia Maps API for Java ME supports up to 50,000 render requests per day and per unique IP address (as of January 2012), for Nokia Developer registered users (free of charge) while the limit for Google's Static Maps API is currently 1000 unique (different) image requests per viewer per day.</li> </ul> <p>A couple of years ago there wouldn't be a choice, only RESTful solutions existed, but these days I would say a static http solution should only be used if you want a simple single image</p> <p>As an abstraction of the underlying services, there are already a full set of examples to cover most of your use cases:</p> <blockquote> <p>-User will provide a string to app to search a place of his/her desire. -Then according to given string app will show a place on map by pointing marker on map.</p> </blockquote> <ul> <li><a href="http://www.developer.nokia.com/Community/Wiki/Geocoding_an_address_with_Maps_API_for_Java_ME" rel="nofollow noreferrer">http://www.developer.nokia.com/Commu...PI_for_Java_ME</a></li> </ul> <blockquote> <p>-User can save that place or he/she can select a near by place rather than searched place by clicking on map or any other way.</p> </blockquote> <p>Maybe you need to use a draggable marker:</p> <ul> <li><a href="http://www.developer.nokia.com/Develop/Maps/Maps_API_for_Java_ME/Code_examples/#standard" rel="nofollow noreferrer">http://www.developer.nokia.com/Devel...ples/#standard</a></li> </ul> <p>Or react to the touch and find a Geocoordinate:</p> <ul> <li><a href="http://www.developer.nokia.com/Community/Wiki/Handling_map_events_with_Maps_API_for_Java_ME" rel="nofollow noreferrer">http://www.developer.nokia.com/Commu...PI_for_Java_ME</a></li> </ul> <blockquote> <p>-app will save that searched place coordinates &amp; remind when it reached to near that place.</p> </blockquote> <p>This is known as geofencing and is covered by the Location API: - <a href="http://www.developer.nokia.com/Resources/Library/Java/#!developers-guides/location-services/example-listening-to-proximity-events.html" rel="nofollow noreferrer">http://www.developer.nokia.com/Resou...ty-events.html</a></p> <blockquote> <p>-When app remind to user about already stored place... that place should show on map by pointing an marker along with the how far he is from his destination.</p> </blockquote> <p>Showing a Map with a Marker</p> <ul> <li><a href="http://www.developer.nokia.com/Develop/Maps/Maps_API_for_Java_ME/Code_examples/#standard" rel="nofollow noreferrer">http://www.developer.nokia.com/Devel...ples/#standard</a></li> </ul> <p>For distance calculations, I guess you'd be after the ROUTING example</p> <ul> <li><a href="http://www.developer.nokia.com/Develop/Maps/Maps_API_for_Java_ME/Code_examples/#routing" rel="nofollow noreferrer">http://www.developer.nokia.com/Devel...mples/#routing</a></li> <li><a href="http://www.developer.nokia.com/Community/Wiki/Advanced_Routing_with_Java_ME" rel="nofollow noreferrer">http://www.developer.nokia.com/Commu...g_with_Java_ME</a></li> </ul> <p>Now you <em>could</em> re-write and all these services from scratch using RESTful APIs (and then go about debugging your code) , but I'm sure you'll agree it would be much easier to use an existing, working and tested framework for the low level plumbing and then just write your code on top using the services. </p> <p>It is possible to encapsulate RESTful service in Java ME. As an example, added below is a screenshot from an app encapsulating the <a href="http://developer.here.net/docs/places/topics/resource-suggest.html" rel="nofollow noreferrer">suggestion service</a> </p> <p><img src="https://i.stack.imgur.com/TEr4z.png" alt="Places Search"></p> <p>It is just a lot easier when someone else has already done this work for you and placed it in a library.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload