I am just looking at the guts of Wikipedia mobile app and see what
sort of services it uses.
I found out it is also using Geonames (see code below). It also uses
JSON to get the lat and long.
Noli
###############
#geo.js
function geoLookup(latitude, longitude, lang, success, error) {
var requestUrl =
"http://ws.geonames.net/findNearbyWikipediaJSON?formatted=true&";
requestUrl += "lat=" + latitude + "&";
requestUrl += "lng=" + longitude + "&";
requestUrl += "username=wikimedia&";
requestUrl += "lang=" + lang;
$.ajax({
url: requestUrl,
success: function(data) {
success(data);
},
error: error
});
}
On 4/10/12, Noli Sicad <[email protected]> wrote:
> Maning, I guess you are using Android app, right?
>
> The beauty of Wikipedia mobile app using PhoneGap/Cordova is, it has the
> same
> look and feel in all mobile platforms.
>
> Cordova Roadmap
> http://wiki.apache.org/cordova/RoadmapProjects
>
> Noli
>
_______________________________________________
talk-ph mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-ph