For iOS 7, is it possible for me to acquire an answer from the google calculator for example?
Like for example, if I have to convert currency, assume the unit for both term (maybe USD to CAD) is decided by the user, can I get the conversion through the URL on Safari(to access live google calculator)?
If not, is there any way to get these conversions that has their value changing daily?
Related
This is more of a general programming question.
I'm trying to create an app, think of it as a Yelp clone. I have most of it working but I'm missing one important feature. The data of the places around me. For now I'm only focused on food, so I'd like it if I search something like "Pizza", it'd show me all the pizza joints near me.
I was originally planning to use Google Places API. However if you havent heard, they're changing their pricing and lowering the free tier and upping the cost by a huge margin.
There's also the problem of saving the data. One workaround I saw a user suggest was to just keep using Google's API, but every time you make the query, store the data in your own DB as well (I only need address and name and latitude and longitude) so eventually, you'd have what you need in a sense. However I also want to have something like a simple rating system for each place like Yelp, but Google (and all other places like MapBox, Here Maps, etc) states something along the lines of "info from their API should not be stored or cached for more than 24hrs" but it's very broad and not specific.
So what I was planning to do was, call the Google API, grab the 3 info I need (Address, Name, Lat/Lng), add more fields to store the rating, likes, whatever else the user will add. Then store it in my database, but that doesn't seem like a solution now.
So does anyone have any ideas or advice? Or know of a service where I can get the details of all the food places? And if possible, can anyone confirm that storing the Name, Address, Lat&Lng is a violation of their policy since in my eyes, it's public data, but something like the rating that Google provides, or the pictures that Google provides, now that's Google property.
For obtaining places you can use OpenStreetMap, e.g. using Overpass API. Since larger traffic can be expected you should run your own database(s) instead of using the public APIs.
However OSM doesn't contain ratings. So you have to combine this data with some other publicly available rating system.
I'm trying to access this API https://api.fixer.io/latest?base=USD but I have noticed that, it showing only 31 countries currency and I want all.
I googled it but doesn't getting any answer for this API.
Below is the response :
{"base":"USD","date":"2017-06-23","rates":{"AUD":1.3214,"BGN":1.7505,"BRL":3.3378,"CAD":1.3231,"CHF":0.97118,"CNY":6.8391,"CZK":23.536,"DKK":6.6564,"GBP":0.78587,"HKD":7.7998,"HRK":6.6258,"HUF":276.68,"IDR":13305.0,"ILS":3.5418,"INR":64.532,"JPY":111.3,"KRW":1137.7,"MXN":18.045,"MYR":4.288,"NOK":8.468,"NZD":1.3734,"PHP":50.226,"PLN":3.7877,"RON":4.0916,"RUB":59.669,"SEK":8.7443,"SGD":1.3869,"THB":33.945,"TRY":3.5116,"ZAR":12.936,"EUR":0.89501}}
I have made a currency converter app using that API and I don't know about any better resource for that.
I think it provides limited currencies because fixer gets it's data from European central bank, which only provides those particular currencies.
check here:
https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html
I am currently creating an app, in which the user is able to book devices (which are provided by a json file) for a certain time period (start date - end date). I was planning to use a online calendar, such as http://30boxes.com/welcome.php to check if the requested device is currently in use by another user at this period of time.
What might be the best strategy to parse that online calendar?
just noticed this website has an API, which makes it super-easy to set and get the calendar data. I feel stupid right now: http://30boxes.com/api/
I have an app that deals with time and it shows prayer times in 12hr format only ,it is very functioning without errors.
one of my users sent me a message :
" app does not work in 24hr format,
when I changed my time setting from 24 hours to 12 hours it start work, actually here in shengun countries Nokia Lumia does not show 12 hours by default, to change the setting we would have to change region setting."
I tried to reproduce the same error but I could not ,ofcourse I am not living in Europe.
my question is what is different in Nokia Lumia in Europe from international version like in middle east from a programmer point of view ?
So I can take in account in my app next update
thanks
my question is what is different in Nokia Lumia in Europe from international version like in middle east from a programmer point of view
Only one thing: the regional settings. You can change them manually on your device or the emulator by going in the settings menu (in the region+language submenu).
Unfortunately, "does not work" isn't precise enough to understand what's going on with your application. A few leads though:
Having a time on 24 hours rather than 12 hours may change your computations
Parsing a decimal number or a date without explicitly setting a culture in the .Parse method can crash when executed in a foreign culture (by far the most common crash occurrence I've seen on Windows Phone)
The same way, converting a decimal or a date to a string without specifying a culture can yield different results depending on the country
I'm tring to search locations with the Instagram API in my application but also when testing with Apigee, I get 500 Internal server error, and Oops, an error occurred.
Apigee: https://apigee.com/console/instagram
Authenticate yourself and add this URL: https://api.instagram.com/v1/locations/search?lat=40.758896&lng=-73.985131
It should return Time Square locations. It worked a few times in the past, but currently it doesn't.
It would be an overkill to use the Foursquare api to search for locations, then pass the location id to Instagram. Is that the only way to get around this? Because once you know the location's ID it works ok.
My possible solution would be to let the user find the desired location here: http://worldc.am/id/47383924f964a520444c1fe3
And use the v2 foursquare API location ID for Instagram.
The Instagram API is pretty bad in that regards - it often just says "Oops an error occured!", without giving you any more info.
I believe their servers have a really low time out limit. Add the parameter distance=500, or even less, and you won't get this error any more. Basically, in a high density area (like a big city), you need to specify a small distance number, otherwise Instagram's server just times out while serving your request.