How do I format google flights query to include multiple destination/origin cities or a multi-city flight? - base64

Following up on this super helpful question, what do I need in my url query to search for multiple destination/origin airports? And what would I query for a multi-city flight?
Any help is greatly appreciated.
I tried
https://www.google.com/travel/flights?q=Flights%20to%20SFO%20OR%20LAX%20from%20HNL%20on%202023-09-13%20through%202023-09-17
and expected to get flights to San Francisco (SFO) or Los Angeles (LAX) from Honolulu, but no luck.

Related

Tweepy-Twitter Python : Get trends where no WOEID available

I've reading docs about twitter api's and I know how to get the trends for available countrys with Woeid (where on the world id).
Twitter has a list of countrys for which they can show the trends. When you list the availables places for trends you may notice that not all cities are supported.
My problem is that I need the trends for a country that has not support for its API. The country I need is El Salvador. This country has no support on the API, neither Woeid. But you can go to homepage and you will see the local trends to the right of window.
There is an option: get the latitude, longitude of El salvador and search trough twitter geo API for trends, but it will return you the trends for other country (Guatemala).
So, as far as I searched, using the api is not an option. Is there another way to get the twitter trends from El Salvador?
Ok, I’ve been doing what you need today.
Without being able to do an api call, which yahoo don’t support, go here;
https://www.yahoo.com/news/weather/el-salvador/apopa/apopa-76867
When you search a city, the woeid is added to the address bar.
Eg Apopa, El Salvador is 76867
Type in city names in yahoo weather and get the ones you need.
Not the best solution but should work for what you need.

Need POI Category Search Clarification

I think Azure Mapping API Service does not return any data for a search using Military Zip Codes. Is that correct? Also, which POI categories or query terms would provide search results for the following:
the standard ZIP Code, which refers to a post office for a city or a division of a city that has mail service
the P.O.-Box-only type is used for P.O. boxes at various facilities
unique ZIP Code types given to organizations that receive large quantities of mail
Thank you very much for your assistance.
Unfortunately today we don't support military zip codes. To submit feature requests, please go to Azure Maps Feedback (UserVoice):
To search zip codes, you can for example call our Get Search Address API (https://learn.microsoft.com/rest/api/maps/search/getsearchaddress), if you know that your input is zip code or an address.
For example, you can use the following query to search zip codes:
https://atlas.microsoft.com/search/address/json?subscription-key=[your_key]&api-version=1.0&query=98007&countrySet=US

How to geocode California using country parameter in the GET request

I am using here api
and i was able to fetch the long, lat of most countries
but i couldn't get information from california using
the below GET request
https://geocoder.api.here.com/6.2/geocode.json?app_id=XXXXXXXXX&app_code=YYYYYYYYYYYYYY&country=california&city=los+angeles
is there something wrong with my GET request, although it worked well for country=Egypt&city=Cairo
My bad...
The answer was simply that california is a state of a USA country, so the problem is solved with replacing 'country' with 'state':
https://geocoder.api.here.com/6.2/geocode.json?app_id=XXXXXXXXX&app_code=YYYYYYYYYYYYYY&state=california&city=los+angeles

foursquare API get filtered list of restaurants

I was checking docs https://developer.foursquare.com/docs/
And can see information how to get some data about the venues, but there no description how to get the list of venues. For example I need to get list of all restaurant in Los Angeles, how can I do it? if it's possible.
Thanks!
You can use v2/venues/search endpoint.
https://developer.foursquare.com/docs/venues/search
e.g.
https://api.foursquare.com/v2/venues/search?
categoryId=4d4b7105d754a06374d81259 // food category
&near=Los+Angeles
&limit=50 // up to 50
&oauth_token=(YOUR_OAUTH_TOKEN)
&v=20170901
It's difficult to get list of ALL restaurant in Los Angeles because limit parameter is up to 50.
Use v2/venues/categories endpoint to get categoryId list.
https://developer.foursquare.com/docs/venues/categories
- Food (4d4b7105d754a06374d81259)
- Afghan Restaurant (503288ae91d4c4b30a586d67)
- American Restaurant (4bf58dd8d48988d14e941735)
- Chinese Breakfast Place (52af3a903cf9994f4e043bee)
...

FourSquare venue search using categories

I am seeing some weird behaviors when I use the search API from FourSquare. The site I am building lists all the nightclub spots (www.nationalvip.com)
When I search using 5 categories:
// 4bf58dd8d48988d121941735 - lounge
// 4bf58dd8d48988d11f941735 - nightclub
// 4bf58dd8d48988d1e7931735 - jazz club
// 4bf58dd8d48988d1e9931735 - rock club
// 4bf58dd8d48988d1d8941735 - gay clubs
Some of the nightclubs that are in category: 4bf58dd8d48988d1d8941735 do no show up.
So query like this:
/v2/venues/search?categoryId=4bf58dd8d48988d121941735,4bf58dd8d48988d11f941735,4bf58dd8d48988d1d8941735,4bf58dd8d48988d1e9931735,4bf58dd8d48988d1e7931735&ll=47.6097,-122.3331&radius=10000&intent=browse&v=20120801
Omits this venue:
https://foursquare.com/v/last-supper-club/40b13b00f964a520a7f61ee3
When I just use that category on it's own they do.
...?categoryId=4bf58dd8d48988d1d8941735&ll=47.6097,-122.3331&radius=10000&intent=browse&v=20120801
I have tried re-arranging the categories. I'd really like to avoid having to call the API many times with various categories.
Has anyone else seen this happen?
Your problem is with the location. The ll param you provided is for a location in San Francisco, but the venue you expect to appear is located in Seattle.
you can increase limit upto 100
I have done that and radius upto 100000meters(100km)

Resources