Title: Using Geo
Last modified: August 30, 2016

---

# Using Geo

 *  Resolved [sin1985](https://wordpress.org/support/users/sin1985/)
 * (@sin1985)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/using-geo/)
 * Hi
 * Unfortunatly I can use none of IP based codes in my country. All of them find
   city wrong.
 * I’ve found a php code that finds location by wifi and its accurate.
    I wanted
   to edit plugin in way that can use this codes.
 * Would you please guide me alittle about code if possible?
    exactly about where
   it uses IP functions.
 * Is it possible to make such a change?
 * ps: this is code Ive found:
    [http://locationdetection.mobi/](http://locationdetection.mobi/)
 * Thanks alot
 * [https://wordpress.org/plugins/woocommerce-geolocation-based-products/](https://wordpress.org/plugins/woocommerce-geolocation-based-products/)

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

 *  Plugin Author [royho](https://wordpress.org/support/users/royho/)
 * (@royho)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-geo/#post-6841704)
 * Can you please provide the IP address and the city you’re trying to match?
 *  Thread Starter [sin1985](https://wordpress.org/support/users/sin1985/)
 * (@sin1985)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-geo/#post-6841761)
 * Hi
 * This is my IP address:188.158.111.5.
 * country: Iran
 * my city is “mashhad” but it finds “hamadan”.
 * All important Geo Databases have this problem,except this:
    [http://html5demos.com/geo](http://html5demos.com/geo)
 * when I use this (at second result),finds almost exact location.
 * That would be great if i can use it in plugin.This plugin is very useful.
    IS
   it possible for me to edit? I can translate it too.
 * Thanks
 *  Plugin Author [royho](https://wordpress.org/support/users/royho/)
 * (@royho)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-geo/#post-6841770)
 * Hi,
 * From my test, it is accurate. You can see I checked on two different IP servers
   and both came back correct.
 * [http://cld.wthms.co/1kqLS/5Cfdvznl](http://cld.wthms.co/1kqLS/5Cfdvznl) (freegeoip.
   net – the one this plugin uses )
    [http://cld.wthms.co/11xfB/21Fodn7N](http://cld.wthms.co/11xfB/21Fodn7N)(
   MaxMind geo database)
 *  Thread Starter [sin1985](https://wordpress.org/support/users/sin1985/)
 * (@sin1985)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-geo/#post-6841774)
 * Hi
 * Thanks for reply. I dont have static IP, so it changes and sometimes its true
   but most of time not.
 * [http://poweredbywordpress.ir/wordpress/wp-content/uploads/2015/12/Untitled.jpg](http://poweredbywordpress.ir/wordpress/wp-content/uploads/2015/12/Untitled.jpg)
 * “karaj” is city name. sometimes is “hamadan” and …. .
 * But with the link I send to you,its accurate to 2 kilometers.and sometimes exact
   location.
 * Thanks
 *  Plugin Author [royho](https://wordpress.org/support/users/royho/)
 * (@royho)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-geo/#post-6841788)
 * So this plugin is free and open source so feel free to fork it and modify it 
   to your needs.

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

The topic ‘Using Geo’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-geolocation-based-products_041a55.
   svg)
 * [WooCommerce Geolocation Based Products](https://wordpress.org/plugins/woocommerce-geolocation-based-products/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-geolocation-based-products/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-geolocation-based-products/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-geolocation-based-products/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-geolocation-based-products/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-geolocation-based-products/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [royho](https://wordpress.org/support/users/royho/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/using-geo/#post-6841788)
 * Status: resolved