Identify the type of place when getting results from Google Places API - google-places-api

I have implemented Google places search.
The problem is that i want to identify that the list of locations returned by the API do contain any airport in it.
As per documentation Google Place do support only these types to identify the place type
administrative_area_level_1
administrative_area_level_2
administrative_area_level_3
administrative_area_level_4
administrative_area_level_5
colloquial_area country establishment
finance
floor
food
general_contractor
geocode
health
intersection
locality
natural_feature
neighborhood
place_of_worship
political
point_of_interest
post_box
postal_code
postal_code_prefix
postal_code_suffix
postal_town
premise
room
route street_address
street_number
sublocality
sublocality_level_4
sublocality_level_5
sublocality_level_3
sublocality_level_2
sublocality_level_1
subpremise
There is no airport in the list.
Any idea how can i do it ?

Your list might be incomplete.
According to https://developers.google.com/places/supported_types there's "airport" in it as well.
Example:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=59.4141,24.8334&radius=50&key=[YOUR_API_KEY]

Related

Get a list of all author IDs for a given given university with pybliometrics

I am trying to get the complete list of author IDs associated with a given University.
I tried to do it from the Scopus web page but my request exceeded the allowed quota.
Any possible solution for this?
You'd use the AuthorSearch class for that. Scopus hides the documentation for this API here, so it's a bit tricky to find all the allowed fields.
What you want is the key "AF-ID":
from pybliometrics.scopus import AuthorSearch
q = "AF-ID(60105007)"
s = AuthorSearch(q)
print(s)
The results are in s.authors.

Google Knowledge Graph API Usage

I'd like to clarify how to use the Google knowledge graph API to obtain more specific information about an entity, such as the height or birthday of a person.
For instance, the documentation provides the following search for Taylor Swift:
https://kgsearch.googleapis.com/v1/entities:search?query=taylor+swift&key=API_KEY&limit=1&indent=True
This request returns some basic information, such as description, name, type, and id. However, the documentation sadly does not explain how to query specific properties for that person (even though the Person schema certainly contains that information).
I've tried changing the "query" value to "taylor+swift+birthday" but that returns something completely unrelated. I've also tried searching by the returned "id" (/m/0dl567 for the above example) but that doesn't give any extra information.
Some guidance on how to use the API in this way would be much appreciated! If however it's not possible to do this, what would be the best alternative?
Thanks!
According to the Knowledge Graph Search API reference, information such as height or DOB is not included in the response.
The most reliable source of such information currently is Wikidata. Using the Wikidata Query Service, you can query the data you need for the entity with the given Freebase ID or Google Knowledge Graph ID:
SELECT ?item ?itemLabel ?birthdate
WHERE
{
?item wdt:P646 "/m/0dl567".
?item wdt:P569 ?birthdate .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

findRooms by name or email address

Using the Microsoft Graph API, I would like to find rooms by either name or email address, such as:
https://graph.microsoft.com/beta/me/findRooms?$filter=startswith(mail,'cal_')
or
https://graph.microsoft.com/beta/me/findRooms?$filter=startswith(name,'Building 1')
Our rooms are not in RoomLists, and there are well over 100 rooms.
How can I query for a specific, or subset of rooms?
The API is very limited in beta, and doesn't support OData query parameters like $filter. Let the team know how you feel about it :) https://officespdev.uservoice.com/.

Alexa rank graph by country

As we know , Alexa shows graph for global progress of a website for example
http://www.alexa.com/siteinfo/netshahr.com
shows the graph for world but not the country based .This would be useful for who target specific country and not the world. Please introduce a way to show graph based on country value .
Found or better to say created because there is not same tool on the internet.
https://alexa.netshahr.com/dailyrank
You can track specific domain based on country . For example here is a sample for own domain
netshahr.com alexa dailyrank

iOS Mapkit, identifying "type of business"

I've looked through numerous answers (most were slightly outdated), and I was wondering if Apple had some sort of way to identify the type of business it queried?
From the reference guide, MKMapItem has 5 variables, none of which tell me a place is a "Thai Restaurant" or something like that.
placemark
isCurrentLocation
name
phoneNumber
url
I think its interesting how when you do a MKMapkit query on "thai", it'll give you a list of thai restaurants but thats a one way street and no where later can I take a result from the query on "thai" to verify that it is indeed a "thai" restaurant. More importantly, what I am particularly interested in is if a business is a "Thai" restaurant and a "Bar" as well, I want to be able to do a MKMapKit query on "Bar" OR "Thai" and be able to get both of those tags
I can see a solution of getting the coordinates of a business then using Google Maps API or even Yelp API and doing a search on there to get the "type of business" but that seems extremely cumbersome and inefficient.
Thanks for any advice! One of my first questions so please so easy on me =)
First, take a look with this link : http://www.raywenderlich.com/13160/using-the-google-places-api-with-mapkit
The google API will send back the name, type, location of business location near you.
It's also send icons(via image link) of business location, so you can display it on the map, which can help you which is market, which is coffeeshop...
But the "Thai Restaurant" maybe too detail so google doesn't want to show it.
Sorry about my bad english.
Hope it help.
For that you should use google near by place search or place search api. you can pass thailand as place name and restaurant to type and it will return you all the restaurant in thailand.

Resources