I want to retrieve a list containing hospital names, long/lat from mapping services like Google map..
Can you help me?
The google geocode API is the way to do this:
https://developers.google.com/maps/documentation/geocoding/
to get a list i.e. for all hospitals in Oregon, USA you can use the following request:
http://maps.googleapis.com/maps/api/geocode/json?address=hospital,oregon,usa&sensor=false
This results in a long response with all information about a dozen hospitals.
There a various ways to modify the results.
Related
One is able to group the number of page views by country, per this documentation. PFB KQL query.
pageViews | project client_CountryOrRegion, itemCount, client_City
However, visualizing by client_City doesn't work.
Is there a way one could group and visualize by the name of the city instead?
Workbooks itself doesn't currently have any built in mapping of city to lat/long, we only have that at the country/region level. (In the screenshots above, you told workbooks that a column of data has country information, but then you passed it cities, so it doesn't know of any countries named those things)
there are various ways to do it by using the externaldata operator in ADX/Log Analytics to have the database load, parse, and join with your other data. If you can get to lat/long, then you can tell workbooks to use that mode where you tell it which columns are lat and long and you'd have your points.
not the exact files you want, but in another example someone wanted to map from ip address to country, and in that example you'd add something like this to your query:
let geoData = externaldata
(network:string,geoname_id:string,continent_code:string,continent_name:string,
country_iso_code:string,country_name:string,is_anonymous_proxy:string,is_satellite_provider:string)
[#"https://raw.githubusercontent.com/datasets/geoip2-ipv4/master/data/geoip2-ipv4.csv"] with (ignoreFirstRecord=true, format="csv");
geoData
| limit 10
in your real query you'd not have the limit, you'd use the kql join operator to do an intersection and you'd get your lat/long that way.
I would like to know how to get all deposits of a target customer with the following SDK (https://github.com/intuit/QuickBooks-V3-PHP-SDK).
Is there an easier way than getting all deposits, then looping to extract the wanted customer's deposits?
Official QBO answer:
You can get complete deposit list by querying the “Query a deposit”
API end point. If we use filter in query, then it may return incorrect
results. Better you can iterate the response and add filter logic in
your code and get specified
I am using salesforce rest api to pull meeting data.There is a field "WhoId" in the reponse which according to the documentation is the related lead or contact id .How do i find whether it is a lead or contact?
You can always tell what sort of object an ID corresponds to by looking at the first 3 letters. In your case, you'd look for a prefix of 00Q (Lead) or 003 (Contact).
See: https://salesforce.stackexchange.com/q/1653
Backup copy of the full table gisted (just in case!) and rendered for your future convenience.
I am newbie to solr. So please bear with me.
Use cases
User can share his photos to friends or publicly or make it private.
User can search for people or photos(he should view only public photos, shared with him).
I have denormalized my relational data to solr schema. I have merged the user object & photo object into solr schema
So,
If user jack (user 3) is searching for "picnic" He shouldn't see the photo_1 but see photo_2.
If user venu is searching for "picnic" He should see the photo_1 and photo_2.
How can I force solr to look into friends_ids, share_level field? can I do with facet.field? Is dynamic fields work for this case? I have read some tutorials but I am not getting clear picture.
Hope you guys shed some light on this. So that I can take forward. I hope this should be possible.
Thanks in advance!
You should have a string field for share_level, with possible value of private, public, friends.
You should also have a multiValued field for friends_ids,
and it should store each user id instead of the current CSV format
NOTE: you should revised this column type, NEVER use CSV in mysql, use a proper entity relationship
So, once you have the field ready, and complete the reindex,
to search for photo will be just:
+name:$search +(share_level:public (+share_level:friends +friends_ids:$uid))
$search = picnic
$uid = 3 (jack)
i am trying to roll my own stock screener using the Yahoo Finance API.
While it is easy to get a heap of data (via XML or JSON) by providing the ticker symbol:
SELECT * FROM yahoo.finance.quotes WHERE symbol="RBS.L"
(See the results here and click 'test').
I am struggling to find a way to find stocks which match a certain set of criteria. For instance, say I want to grab a list of stocks whose Bid price is greater than 20
SELECT symbol FROM yahoo.finance.quotes WHERE Bid > 20.00
The query fails, with the following message:
Cannot find required keys in where clause; got 'Bid', expecting required keys: (symbol)
as can be seen here.
Is what I am trying to do possible? Is there a way to write the query string to get what I am looking for? Or is there a much simpler service out there that can help me out.
Would appreciate any help you guys can give me.