Searching and Sorting in an XML file containing location Coordinates

ramzyawadh

New Member
well i have a xml file that i use to store location names with their addresses and their co ordinates. i need this data to help locating tht location on map. now the xml file is huge as it contains large amount of data so i want to reduce the searching time as i want to deploy the app on the mobile platforms- android and iphone. What i exactly do is, get users current location and then parse the xml one by one, get the co ordinates , compute distance between location and user, and then if distance less than radius, print on the screen. so any sorting or search algo can i implement here that will be on the users current location co ordinates???
 
Back
Top