0

I am creating an application in Android where I ask user to enter his address.There are chances that a user can enter wrong address so how can I check that the entered address is correct or not.

Please Help

Arun Badole
  • 10,977
  • 19
  • 67
  • 96
  • 2
    How do you define a "wrong" address and a "correct" address? If the "correct" address is "123 Main Street", would "125 Main street" be "wrong"? Also, are you talking about specific countries? Specific address formats, etc.? What about incomplete addresses, e.g. "Main Street, City, Country" - with missing post code? – Aleks G May 10 '12 at 12:08
  • @AleksG , is there any such way? as i know we get the location in a map by geocoding/reverse geocoding... but to check actual address we can store the map coordinates in a local server and match according to that.It will be helpful if you say.. i really donot know it well except a few functionalities – divaNilisha May 10 '12 at 12:15
  • What you are looking for is simply not possible. – Gaurav Agarwal May 10 '12 at 12:15
  • 1
    @divaNilisha I don't think it's possible. It would be very nice if it were, but no such luck – Aleks G May 10 '12 at 12:16

1 Answers1

0

You could show this address on the map and ask the user to confirm it's correct. Simple example:

var uri = Android.Net.Uri.Parse ("geo:0,0?q=my+street+address");
var mapIntent = new Intent (Intent.ActionView, geouri);
startActivity (mapIntent);
myki
  • 773
  • 5
  • 7