• Resolved RaffaelT

    (@raffaelt)


    Hi Dylan,

    First of all, thank you for this great plugin !

    I easily managed to query locations by sub_admin_code by adding ‘sub_admin_code’ => null, at line 33
    AND
    sub_admin_code in $where_fields, at line 134
    in gm-location-query.php.

    But each time the plugin is updated, I need to add those lines again.

    So I was wondering if you could please add this feature.

    That would be really nice to you.

    https://wordpress.org/plugins/geo-mashup/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dylan Kuhn

    (@cyberhobo)

    Sure, I don’t think there’s any harm in that. I think I didn’t offer it by default because sub_admin_code is often not included in geocoding results, so may not be as reliable as the other fields. Let’s track progress here:

    https://code.google.com/p/wordpress-geo-mashup/issues/detail?id=701&thanks=701&ts=1415125573

    Thread Starter RaffaelT

    (@raffaelt)

    Thank you Dylan !

    You are absolutely right. In many cases, queries on the sub_admin_code field are not as reliable as we would expect. But the adresses I have to filter are all located in Paris or its suburbs, and the information provided by Google is quite good in this area.

    I tried more complex queries in order to achieve the same goal, but results were even less reliable. That’s why I finally decided to modify your code. Simpler query, better results !

    Plugin Author Dylan Kuhn

    (@cyberhobo)

    GeoMashup 1.8.2 includes this change.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Query by sub_admin_code’ is closed to new replies.