Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Laurence Gillian 600 posts 1219 karma points
    Feb 18, 2010 @ 18:35
    Laurence Gillian
    0

    Erratic Mapping

    Hi Darren,

    Been playing with your maps datatype this afternoon (finally!). It seems that when I type in a Long/Lat it can't map it, and when I type in a UK postcode it either plots it an 5 locations over the world or it plots it in the UK but quite a long way away from the correct location.

    Can't quite work out whats going on! Tis very odd.

    Has anyone else experienced this behavior?

    I'm running IIS5, .Net 2.0, SQL2008, Windows XP here.

    Hope you are well, Lau

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Feb 19, 2010 @ 10:15
    Darren Ferguson
    0

    Laurence.

    When you search a postcode, click on one of the pins and then the 'use this location link' to store the appropriate lat/lon.

    You can also drag the pin for greater accuracy.

     

     

  • dandrayne 1138 posts 2262 karma points
    Feb 19, 2010 @ 10:31
    dandrayne
    0

    Sometimes the following can help prioritise UK results when using the maps api

    var geo = new GClientGeocoder(); 
    geo.setBaseCountryCode("uk");

    But postcode search isn't as accurate in embedded maps due to licensing issues with the Royal Mail PAF afaik

    Dan

  • Laurence Gillian 600 posts 1219 karma points
    Feb 19, 2010 @ 11:03
    Laurence Gillian
    0

    So are the postcodes accurate when using the google.com/map domain, but not when it is embedded?

    Where is this var geo variable located, I've had a quick look through the files placed in the plugins folder but couldn't find this reference.

    Thanks for the speedy response guys, Lau

  • dandrayne 1138 posts 2262 karma points
    Feb 19, 2010 @ 11:16
    dandrayne
    0

    Yeh because of licensing issues when you postcode search on an embedded map you're not getting the full accuracy that you get on google.com.  Apparently you can bypass this by using the local search api, but that's probably for another thread.

    geo can be called anything, search for the "new GClientGeocoder()" call, then check whatever variable it has been assigned to to see if it has had the base country set.

  • Laurence Gillian 600 posts 1219 karma points
    Feb 19, 2010 @ 19:34
    Laurence Gillian
    0

    Is anybody using this package then on a production site? 

    I like the concept, but I wouldn't be able to roll this out due to this issue. Even if I type a full address in the results are often up to 10 miles away. However as you mentioned above if the address is entered without the postcode then the mapping is accurate.

    I'm going to have a look into this over the weekend to see how this can be improved.

    All the best, Laurie

     

Please Sign in or register to post replies

Write your reply to:

Draft