Amadeus Self API search airport/city for Indonesian City not found data - laravel-7

In this case, i am search airport and city from indonesian country. But not have data from this API
Thanks

If you are using the test environment it's because the API contains data from Spain, United States, United Kingdom, India and Germany as you can see in the data collection. For access to full data you would have to move to production.

Related

How do I add a specific a dataset about a person past in dialogFlow to behave as small search engine?

I have specific dataset represents about a person past in a form of CSV file and has columns such as date, day name, time, the location visited like country and specific name like shop name.
I would like dialogFlow to behave as information retrieval and answering question like below:
User: What is the name of the restaurant that I visited in the United Kingdom ?
Computer: You have visited two cities in UK. Was the restaurant in London or Manchester?
User: That’s right. It was in London.
Computer: it is called Nandos.
User: Thanks.
Computer: You’re welcome
I tried and added a dataset as table in knowledge option in dialogFlow, I tried some questions, but it gave like 6 rows from the dataset and not perfect. How to make the answers more accurate and specific.
I have little experience on dialogFlow, but I have watched good information about it.

Best way to implement lookup tables in Excel Power Query

I have a table of country values as in:
SourceCode TranslationCode
United States USA
US USA
Great Britain GBR
England GBR
Source Customer Table
CustNbr CustName Country
12345 Acme Tools United States
23456 Smith and Co US
34567 Rogers Assoc Great Britain
--Expected Result--
CustNbr CustName Country
12345 Acme Tools USA
23456 Smith and Co USA
34567 Rogers Assoc GBR
In Power Query, what's the best way to handle this so that I can refer to the lookup table dynamically?
The end user may have values to add to the lookup/translation table(s) and expect those to be included/replaced the next time the process is executed.
Thanks in advance.
In Power Query you'd typically do a merge instead of a lookup. The lookup table can be a data source that user can update.
Load the lookup table as a new query with all columns. Save this as a connection only, so you don't duplicate the data.
In your main query, merge the lookup query and join on the columns with the matching values, i.e. Country from the main query and TranslationCode from the lookup query, with "All items from first, matching from second".
Expand the TranslationCode from the joined query
delete the original Country column
rename columns to your preferences.

Foursquare API: suggestcompletion near specified city

My aim is to find venues in specific city.
For this purpose i am using /v2/venues/suggestcompletion endpoint. So for example next request https://api.foursquare.com/v2/venues/suggestcompletion/?limit=10&query=McDonald&near=Napa,%20CA,%20United%20States&client_id=xxx&client_secret=yyy&v=20161118&locale=en returns venues not only in Napa, but also in Fairfield, Vallejo etc. Result for this query.
Ok, as far as I know what city I need I can filter result by city on my side. But in this approach I received next problem. Next query https://api.foursquare.com/v2/venues/suggestcompletion/?limit=10&query=Diviera%20Drive&near=New%20York,%20NY,%20United%20States&client_id=xxx&client_secret=yyy&v=20161118&locale=en returns venue in city labeled Brooklyn. Result for this Obviously New York string and Brooklyn does not match. Maybe somehow I can retrieve main city (New York) next to borough (Brooklyn) so I can filter it on my side properly
So my question is: how can I receives venues only in specified city.
The near parameter you're using is not a filter - it's a coarse geocoder that's used to generate a latitude/longitude to search near.
The search documentation does not show a way to limit results to a city name. If you only want to show results in a certain city you'd have to do that filtering yourself. Since the city name may be missing or incorrect (sometimes city boundaries are fuzzy) a more precise way could be filter based on the lat/lng coordinate.

How can I store my hierarchical data?

I'm creating an iOS app which allows you to find the quickest route from one city to another. To make things easier for the user, you can filter down based on a city's continent or country too (so Europe would show Paris, London and Berlin, whereas France would only show Paris). I currently have all my objects stored in various arrays, with the City object pointing to the Country object, and the Country object pointing to the Continent object. See my diagram below for a visual representation:
I feel that this is really ineffective when it comes to filtering the data out. I want a data structure that will allow me to filter the cities out quickly. I am happy to use my 3 arrays that I currently have, but I really feel that this isn't efficient enough, and I am struggling to find a solution online. Thanks in advance.
You are trying to set up a network type database. Instead, try using a relational type database. One table of cities with extra columns for country. Then another table of countries

Orchard CMS query on multiple taxonomies

I am useing taxonomies in orchard. i have two types of taxonomy 1: House > buy / rent. and 2. Location > spain / france/ uk. I have decided to use taxonomies based on my other post and orchard cms guru Bertrand Le Roy advice. Orchard CMS best options for list
My example
I have a house content type (tittle, body, 2 taxonomy fields {1: HouseType > buy, rent. and 2: Location > spain, france, uk} ) so a user will have to select 1: buy or rent. Then from the second taxonomy select the house location ie spain. I have 2 houses set up both use house type buy but 1 from location spain and 1 from location uk.
I know create a query and this is the problem: if i add a filter of taxonomy and choose buy i get both my houses as expected, if i set up the filter to have buy and spain (with only 1 filter but choose both from select box) i still get both houses which is wrong i would expect to only get 1. However if i have 2 seperate filters 1 buy and 2 spain then i get no results returned, which is wrong. Can some exlpain why this does not work and how to overcome it. I need to be able to say in the query get me, eg. all houses in spain that are of type buy and only got those houses.
Thanks

Resources