geoPlugin Home

geoPlugin's Currency Converter

All calls to any of geoPlugin's web services provide you with an accurate currency converter function, as well as currency details about your visitor (what is their local currency code and symbol), that is updated daily.

A list of all supported currencies that we hold daily conversion factors for can be found in this PHP serialized array, JSON array or in the converter drop-down list below.

This allows you to easily and accurately provide geolocalized prices in your visitors' local currency on any and all of your pages. That way, if your visitors are from another country, they know how much your products will cost them.

The default base rate returned when calling our web services is $US. If you trade goods in a currency other than $US, you can change this by tagging the variable base_currency=XXX to the web service call, where XXX is a valid ISO 4217 3-letter code. eg

http://www.geoplugin.net/javascript.gp?base_currency=EUR

The above code shows how to access the Javascript webservice.


You can also access this functionality using PHP, JSON, or XML.



PHP, JSON, and XML webservices all return the exchange rate within the variable geoplugin_currencyConverter.
Javascript, however, returns a function that can directly convert an amount, for reasons explained in this page.



Here is a fully independent, real-time currency converter.
An explanation of how to do the same is given here

Convert to




See also

 
 
Bookmark with:    Digg    StumbleUpon    Del.icio.us    Technorati


Acceptable Use Policy    Contact geoPlugin