Destination Location Code for anywhere in the world - amadeus

I'd like to know if there is a specific code to mention on the API on the required field destination location code in order to have all the destinations possible from my origin location code ? or a possibility to fill nothing in the destination location code ?
Thanks for your answer

I'd suggest you check out the Flight Inspiration Search API which provides a list of destinations from a given origin.
You can also have a look at this article which explains how to build an anywhere search with the API.

Related

Linkedin Geotrageting in API

I have a file that holds all the possible geo targets in Linkedin which I use to pivot data by geo. As it seems from my data the file isn't up to date and after long search I couldn't find the endpoint or the source of the file, It was there before I joined. I tried to ask for support from Linkedin but there lazy supprt refer to ask here, so please if someone can share a link or the most updated file it will really help me.
thanks.

Can Branch.io deep link URL's be customized

A regular deep link dynamically generated using the iOS/Android SDK's might look like this: https://example.app.link/fzmLEhobLD
Would I be able to dynamically generate a deep link that would look something like: https://example.app.link/jsmith49
this would greatly help for marketing purposes
If yes, how?
Jackie from Branch here.
You can definitely use a link alias to replace the standard encoded short URL (e.g. https://example.app.link/fzmLEhobLD -> https://example.app.link/jsmith49). Note that link aliases must be unique, otherwise a 409 error will occur.
If you are creating Branch links via the SDK and/or HTTP API, you'd need to set the value of 'alias' key. Please refer to our documentation on configuring links here.
Alternatively, you can use the Branch dashboard to create links by entering the link alias on the 'Configure Options' step here.
Let us know if you have more questions. Hope this helps!

Confusion about Foursquare's Attribution & Linking policy: what other ways can I attribute them besides creating a link?

I see either link them directly or visual attribute them. Example: say my website provides a recommendation directly to a user based on their submitted interest, do I just make sure "powered by Foursquare" shows underneath?
Any help would be appreciated! I'm new to tech development
These policies are generally more vague on purpose. Rule of thumb: If you're showing any data to users that isn't your own, it should be clear to them where it's coming from. This is done so the data provider gets proper attribution but also can protect yourself against content being displayed on in your app/site.
For Foursquare specifically, it seems like you would need to include a "Powered by Foursquare" icon and optionally provide a link to the venue if the user may need more information about the place.

Make google custom search location-aware

When I search for "football images" on google.co.uk, it knows that I mean the sport that elsewhere might be called "soccer". If I do the same search on google.com, I get American Football.
I'm using the custom search API - how can I tell it that I'm in the UK and would like results relevant to here?
You can limit your engine to operate on sites from a particular country via "cr" param, e.g. in Custom Element it looks like this:
<gcse:search cr="gb"></gcse:search>
Google knows some synonyms on the web, but if your particular use case is not correctly recognized you can add it in Control Panel in Search Features > Synonyms
More on synonyms:
Sorry, I ended up answering this myself. I couldn't get any of the instructions under the custom search API itself to work (although the answer offered above was also mentioned there, but this just made my CSE Context XML apparently invalid), but you can make requests to a custom search engine by using the instructions here https://developers.google.com/custom-search/json-api/v1/using_rest and an API key.
This is how I did it;
<gcse:search cr="countryUK"></gcse:search>
You can even return results in a specific language, code shown below returns results only in french;
<gcse:search lr = "lang_fr"></gcse:search>
This is the reference for Google Custom Search Element Control API: https://developers.google.com/custom-search/docs/element?hl=en
Try to set the 'gl' parameter to the country you want.
For details, look into CSE:list

Google Custom Search API curl trouble

I'm a newbie at stackoverflow so please be patient with me :)
I'm trying to get access with the Google Custom Search API.
But I get return that I can't understand.
My query is like this:
https://www.googleapis.com/customsearch/v1?&key=********&q=red%2Bsox&cx=**********&start=0&num=10&cr=countryCA&lr=lang_fr&client=google-csbe&output=xml_no_dtd
And the result I get is this?
string '{"error": {"errors": [{"domain": "global","reason": "invalid","message": "Invalid Value"}],"code": 400,"message": "Invalid Value"}}' (length=172)
What am I doing wrong?
I want the result from Google to appear.
Thanks in advance :)
You don't have a cx.
Take a look at this answer
What happens is because this api is used mostly for adding a search option
for your site you have to specify you custom search engine (e.g. search only your site).
When you want this to search the web by code you need to do the above. Add a fake
site (where you would add your search textbox), configure it (search the web, or your site, or whatever else) and then delete the fake site
Update
Oh god, i just saw that. Sorry. Well the problem is that you start with 0. Valid is 1. Change start=0 with start=1 and i think you would be good to go. Take a look at this for valid values for the start parameter official page