[OSM-dev] (reverse) GeoCoding on. Android

Nick Whitelegg Nick.Whitelegg at solent.ac.uk
Wed Apr 11 09:06:05 BST 2012


Hello Graham,

You should be able to use, or at least adapt, any Java OSM parsing code (e.g. that used in JOSM, Osmosis etc)Android uses the same SAX parser as standard Java.

See https://github.com/nickw1/Freemap/tree/master/java/freemaplib/src/freemap/ for a Java parsing library which I have successfully used in Android apps (OpenTrail and the experimental Hikar). This doesn't parse .osm, it parses a custom XML format geared for rendering applications, but the principles are similar.

Nick

-----Graham Jones <grahamjones139 at gmail.com> wrote: -----
To: OSM-Dev Openstreetmap <dev at openstreetmap.org>
From: Graham Jones <grahamjones139 at gmail.com>
Date: 11/04/2012 07:26AM
Subject: [OSM-dev] (reverse) GeoCoding on Android

Hi All,
I am trying to put together a little android application that works out where it is, and sends the info on a text message to someone (it is for someone who can not talk well).
The location finding and SMS bits are working now, but the location is lat/lon, which is not very friendly for the recipient - I would like an address. 

I could use an internet service for this, but I would really like it to work without an internet connection, so am thinking of including an OSM data extract on the phone sd card and trying to use that first, before falling back to an internet service. 

I wondered if anyone knows of any ready made code to process and search OSM data on Android/java before I write something?   I guess Vespuccii must have all the parsing stuff in it, but I will be needing to handle more data that you would have in an editor - can anyone give me any pointers to the best way to do this on a low powered mobile device? 

Thanks

Graham.

-- 
Graham Jones
Hartlepool, UK.
  _______________________________________________
dev mailing list
dev at openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20120411/c53d7fd1/attachment.html>


More information about the dev mailing list