#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Posts
    2,566
    Rep Power
    171

    What is the best way to get users to show their ads on map?


    Hi;

    I have a website that members place ads about their properties.

    How can I get users to get the correct map location for their properties?

    Address doesn't seem to be very exact. I can't expect them to give me their lat lng either.

    Please comment.

    Thanks
  2. #2
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,742
    Rep Power
    9397
    Address isn't exact? It's pretty damn accurate every time I try Google Maps. If you're talking about geolocation then yeah, that's inaccurate, and that's one of the reasons you should prompt for an actual address.
  4. #3
  5. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Posts
    2,566
    Rep Power
    171
    Originally Posted by requinix
    Address isn't exact? It's pretty damn accurate every time I try Google Maps. If you're talking about geolocation then yeah, that's inaccurate, and that's one of the reasons you should prompt for an actual address.
    I thought I get them to type it in text box or input text.

    But what if they type the address wrong or miss-spell it? For example:

    Nwe yourk instead of new york?
  6. #4
  7. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,742
    Rep Power
    9397
    What do you want me to say? That you should know what the user wants without them telling you? If they screw up entering the address then they'll get bad results, if any at all. Then they'll wonder what happened, look at what they entered, kick themselves, and try entering it again correctly.
  8. #5
  9. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,066
    Rep Power
    1990
    How precise it needs to be depends on the geo-encoding API that you're using. I know that google's API gives back up to 5 addresses with the lat/lng values if it can't find an exact match, so you just need to adjust your programming to cater for the results of the API that you're using.
  10. #6
  11. Wiser? Not exactly.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    5,905
    Rep Power
    3969
    You could always give them the option of manually placing a marker on the map as well, and just use an address for initial positioning. That way if the position returned by the address lookup is not quite accurate enough for their tastes it can be adjusted.

    I've done this in the past before, and Craig's List does this as well. You enter in an address, it plops down a marker for where the API says that address is, then you can drag it around to where you actually want it.

    Obviously there isn't really much of anything you can do about users [un]intentionally entering in invalid details such as a typo in the address or a flat out incorrect address. If an address doesn't resolve you can notify them of the error and try again but if it does you just have to rely on them to make sure it's actually correct.
    Recycle your old CD's, don't just trash them



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud

IMN logo majestic logo threadwatch logo seochat tools logo