1
4 Comments

Ask IH: Can this be a product? Display rates in local currency.

http://shree.cc/localrate/api.php?s=USD&v=13.99

I scripted code for my usage to show rates in local currency.
It can help customers to decide better.

And was wondering if this could be a product.

Link to the raw API.
http://shree.cc/localrate/api.php?s=EUR&v=13.99
This returns converted value as text in your local currency.

P.s. Let me know if any Indiehacker wants this.
Will fine tune and share for nothing in return.

submitted this linkon May 27, 2019
  1. 1

    Nice idea. Could be even better if the api can be combined with geo-identifying ip. Something like this:

    api.php?v=9.99&s=USD&ip=x.x.x.x
    

    And based on the ip, the api will give the local rate.

    Edit: Scratch the above. Looks like it’s already implemented. 🙂

    1. 1

      Thanks for the reply! :)
      Yes. The API already checks for the geo and accordingly picks the currency & converts it.
      Do you think this will have users?

      1. 1

        Yea, if it were me I would use it. I have seen location based rates on many products. Developers may want to use it since it will cut down on time.

        Just curious: how are you geo locating IP addresses? Any library?

        1. 2

          how are you geolocating IP addresses?
          Using an API