i need a script which should work on a simple shared hosting account (like [login to view URL]) and implement it on a wordpress blog page.
The first thing the script should do is to find out the location of the website visitor in a format like chicago, USA or Shanghai, China.
The second part of the script can determine the geolocation where the website of a domain name or IP address is hosted
,again in a format like chicago, USA or Shanghai, China.
it should work for all country code extensions like .jp [login to view URL], .[login to view URL], de, .cn etc as well.
the third part of the script should be able to use one of the free major map providers(not google maps) and calculate the distance in km/miles between the domain and the visitor location and create a map where the two points are marked and an air distance line is [login to view URL] the proper perspective(should look good both point should be alway visible)
see here:
[login to view URL]
Then there should be a text output as well like:
Your Location is xxx, xx. The domain(or IP, leave out if location was put in) is located in xx, xx
You are xxx km, (xxx/miles) away from the server where [login to view URL] is hosted. Or you are xxx miles away from location xxx(if a location was put in) etc.
The script should have two input fields:
1. Domain Name([login to view URL]), IP or Location(Chicago, shanghai etc.)
This field allows the visitor to input either an IP or a domain or a location.
When loading the page the field should be already prefilled with a specific domain or location.
The user can still input his own data if he wishes.
2. The second input field is already prefilled with the visitors location but other location input should still be possible.
The map and the distance output should automatically be displayed when the page is loaded using the visitors location and the predetermined input from field 1 (like domain, ip, location)
the input fields should have some kind of simple bot protection.
here is an example of the first part of the script with bot protection.
[login to view URL]
here is an example of the second part of the script:
[login to view URL]
other things:
ability to edit map size in pixels, ability to choose between satellite or map style before map loads (if available. easy to edit)
ability to edit an and customize output phrase.
abilty to leave out or add specific elements like map, output phrase, input forms.
documentation that explains how to install, setup, customizeand implement the script. easy to set-up and distribute to other non-tech savy people.
relying on 100% free APIs should work for international locations and international domains (jp, .[login to view URL] etc...)
reliability (high success rate), should look good
the data should be free the maps of high quality and high query limit and not come from google maps.
a few data providers:
[login to view URL]