• Hi Dylan,

    Firstly thanks for this great plugin,

    GEO Mashup version: 1.8.8
    Geo Geo Mashup Custom
    Google Maps V3

    I am creating a site for a company with 5 high street shops in Scotland.
    I have successfully created a page showing all shops on a Google map.
    This page contains a Geo Mashup search widget, which shows the results in a separate page, my custom search results template. This template shows all 5 stores in order from nearest to furthest away.

    If I enter a UK postcode as the search criteria it works fine.
    If I enter a town name such as ‘Aberfeldy’ it also works fine.
    If I enter ‘Perth’ the results show Perth Australia instead of Perth UK
    If I enter ‘Carlisle’ the results show Carlisle in the US instead of UK
    If I enter ‘Perth UK’ the results show Perth in the UK
    If I enter ‘Carlisle UK’ the results show Carlisle in the UK

    I tried adding a radius menu, which I’d rather not have on the site.
    With the radius menu I get no results for ‘Carlisle’ until I set it to 4000 miles and with ‘Perth’ unless I set the menu to 10,000 miles.

    I understand that I can specify a region or set a map’s bounds when displaying a map but I can’t figure out how to specify either of these for the geo Mashup search widget.

    I also don’t understand why setting the radius menu doesn’t return any results out with the US or Australia.

    Can you help?

    Regards

    Ian

    https://www.ads-software.com/plugins/geo-mashup/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ian

    (@iannich)

    Sorry needed to make an edit and didn’t spot the edit button so posted another message, now can’t delete it. ??

    Thread Starter Ian

    (@iannich)

    I’ve made some progress.

    If I change line 95 of geo-mashup-search.php

    from
    $geocode_text = empty( $geolocation ) ? $location_text : $geolocation;

    To
    $geocode_text = empty( $geolocation ) ? $location_text . 'uk' : $geolocation;

    it works. Both Perth and Carlisle in the UK are used for the search.

    This tweak is obviously not safe from upgrades, is there a different way I can achieve this?

    Regards,

    Ian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search nearest – restrict to UK’ is closed to new replies.