But i like it.
It shows my area code is 0.
Is it correct?
Very cool how much information it gives you.
Perhaps you could make it a bit more graphically up to date? The design looks like it was made 10+ years ago. I don't think you need to go crazy with it, but something simple yet elegant.
it tends to pick up where you get your internet from,like mine says the city where my company is and where i go to pay it.
and ive tried the area code in 5 different spots,they all work correctly for me.
The area code I am sure has something to do with you guys living in a different country.
Area code is working correctly for me here in the USA.
The area code script would be expected to work only in the US and a few nearby places, the "North American numbering system" is telco lingo. If you test for a zero value, you could either seek some other geolocation info that deals with international numbers, or just suppress the field altogether.
I'm interested in the details of how you implemented these. I'm guessing you call another server to get the info, but you could probably build a table with all the information and look it up in your own database. If you don't mind sharing your code and the source of your info, it would be interesting to discuss alternative geolocation services and how to get such features to work in all or most countries.
One way to test these scriptw would be to find ip addresses that resolve to all possible areas of the world, and plug each one into the geolocation script.
I see you got the jpeg images working.
Another feature, useful if you're hoping many sites will use your scripts, would be to have a default text string, but allow the using site to pass a different string in which they specify where the ip, zip, and area codes are displayed. If you could accept something like a printf format string, perhaps "Your ip is $ip. I estimate your computer (or proxy server) is at lat $lat, lon $lon, in the city of $city, country of $country."
Ideally there could be some conditionals, so that you could provide zip code, area code, or comparable information in an appropriate format that might vary by country. While some of us would enjoy helping you with ideas and methods for that, you might wish to keep some parts of your script private just in case you find some version of it is a killer app.
the script shows my country code as 0.
it's a nice idea but i think you need t get a good CSS template and it would be good
The word Philippines got cut. I'm using chrome.
This is really helpful man!
I love your work since it is simple and effective