Google Trends valid geos - google-trends

I'm looking for a list of all valid geo values for sub-national units for Germany for the Google Trends API.
All ISO 3166 values seem to work -- the 16 German states that is -- but at least in PR Google is also showing data for cities

List of all valid geos for the API available here.

Related

Network flow chart

I work with supply chain networks and I'd like to represent/visualize the flow of products through the network. I'm using Power BI.
Each pair of origin/destination can have more than one link. This link represents a particular transportation mode or a particular group of products.
Besides categories, there are fields that represents numerical values like the flow through the link, or a flow constrain through the link.
These values may be used as weights at the charts.
So far, all Power BI visual that I tested only represents one link per origin/destination pair.
Force-Directed Graph shown more than one, but it superposes the links.
Network Navigator has a similar approach but only shows one link per origin/destination.
Is there a Power BI visual capable of represent a flow through a network with "great circle" kind of links between nodes and do not superposes them?
The following table is an example of the data I'd like to visualize:
Link_ID
Link_NN
Origin_ID
Dest_ID
Link_TP
Product_TP
Min_Vol
Max_Vol
ABC
Pipe_A
LOC_1
LOC_2
Pipe
Diesel
0
1000
ABD
Pipe_B
LOC_1
LOC_2
Pipe
Gasoline
0
2000
ABE
Truck_A
LOC_1
LOC_2
Truck
Diesel
0
100
ABF
Ship_A
LOC_1
LOC_3
Ship
Fuel Oil
0
10000
Link_TP and Product_TP would be used in slicers. The main point is to visualize all the links that exists between an origin/destination set.
I work for a commercial graph drawing library provider and I can tell you that we have been getting similar requests a few times, already. Thus I believe there is no such good visual available out-of-the box.
However Power BI can be extended easily and we have had customers doing exactly that: Building a custom Power BI visual with our third party diagramming control to add the missing features to their dashboards.
To give you some ideas, here are visualizations that sound similar to what you are looking for.
Interactive Process Mining Diagram Online Demo
Sankey Flow Diagram Online Demo
Network Flow visualization Online Demo
Also there is a GitHub repo that shows how to create a custom Power BI visual with the above technology:
https://github.com/yWorks/graphs-in-power-bi
As mentioned: DISCLAIMER: I work for the company that creates that library, however I do not represent my company on SO. My statements and thoughts on SO are my own.
PowerBI, no.
And, in general, I do not see any library to provide exactly this. The closest is probably deck.gl's ArcLayer. I think ArcLayer is flashy and all but it's not as clear as I want.
There is an excellent academic paper on the subject that describes exactly what I want.
"Force-directed layout of origin-destination flow maps" 2017 by Jenny et. al.

How can we set chart settings for number abbreviations of Data Studio Report?

Date and number abbreviations in Data Studio Report look different on different users. In English, abbreviation of 1000 is K and abbreviation of 1,000,000,000 is B. But In Turkish, abbreviation of 1000 is B.
This causes confusion between a thousand or a billion. When examined users with different report views, we found that Google Account Language Settings are different.Is it possible set these abbreviations so that they do not change with the Google Account Language Settings?
The number format is based on the language of the respective Google Account that's logged in by the viewer. To display the Report URL in a specific language (e.g. English), add the suffix:
?hl=en
More Language Codes
1) Standard URL
https://datastudio.google.com/reporting/48900f64-2068-4331-b707-f82df114542a
2) English (US)
https://datastudio.google.com/reporting/48900f64-2068-4331-b707-f82df114542a?hl=en
3) Spanish
https://datastudio.google.com/reporting/48900f64-2068-4331-b707-f82df114542a?hl=es
Source: Google Forum Post (Nimantha 13 Jan 2020)

Count records returned from $extend in Dynamics 365 Web API

Basically, I have something like this:
https://company.crm.dynamics.com/api/data/v9.0/accounts?$select=accountid,accountnumber,name&$expand=crm_productbuyer($select=name)
I'd like to be able to just get a count of the number of records returned in the $expand instead of deserializing it in C# and doing a count on it. Just one lest thing to iterate over.
This didn't work for my case:
API $expand and &count
EDIT:
There are a number of things here that indicate this isn't doable:
https://learn.microsoft.com/en-us/dynamics365/customer-engagement/developer/webapi/retrieve-entity-using-web-api#retrieve-related-entities-for-an-entity-by-expanding-navigation-properties
You can’t use the /$ref or /$count path segments to return only the URI for the related entity or a count of the number of related entities.
This is a subset of the system query options described in the “11.2.4.2.1 Expand Options” section of OData Version 4.0 Part 1: Protocol Plus Errata 02. The options $skip, $count, $search, $expand and $levels aren’t supported for the Web API.
Will mark this an answer unless someone else chimes in to demonstrate otherwise.
Doesn't sound like it is doable:
https://learn.microsoft.com/en-us/dynamics365/customer-engagement/developer/webapi/retrieve-entity-using-web-api#retrieve-related-entities-for-an-entity-by-expanding-navigation-properties
You can’t use the /$ref or /$count path segments to return only the URI for the related entity or a count of the number of related entities.
This is a subset of the system query options described in the “11.2.4.2.1 Expand Options” section of OData Version 4.0 Part 1: Protocol Plus Errata 02. The options $skip, $count, $search, $expand and $levels aren’t supported for the Web API.

Mapbox Geocoding API V5- Get all neighborhoods in a city

Is there a way to get all neighborhoods per city by lat and lng from mapbox API V5.
For example, if I search using the lat and lng of Long Beach.
-118.1937, 33.7701
I expect to get back all the neighborhoods, instead, I only get back one result of
"place_name: "Downtown, Long Beach, California 90802, United States""
I have changed the response limit and bound box, with no results.
Here is the mapbox playground.
https://www.mapbox.com/api-playground/#/forward-geocoding
Thanks!
Mapbox doesn't really do neighborhoods, they require some sort of search data to pull either addresses or places.
However, there are services where you can get neighborhood data. I found this Stack Overflow question to have several links (sadly, most of them outdated....), with the reference to Zillow having a lot of promise.
I'd also suggest the Census Bureau data as it may have what you are looking for, but it is what I would call 'less than user friendly' to find anything - unless you are comfortable reading government spec sort of things... :)

API to get current weather conditions for any point on Earth

I'm in the planning phase of a project and one of the requirements is that the system be able to get the current weather conditions for any point on Earth, given a set of latitude-longitude coordinates.
I signed up for Wunderground.com's Weather API, but immediately realized this wouldn't work. If you enter a set of coordinates that doesn't correspond to a known city, the API returns a "querynotfound" error with the description "No cities match your search query."
Does a service like this exist?
EDIT: To clarify, I might need the current weather conditions for some arbitary point in (say) the Atlantic ocean.
Have you looked at google api?
http://www.google.com/ig/api?weather=,,,40467626,-03609910&hl=es
I think this is what you are looking for Using Google Weather API with Lat and Lon - how to format?
Edited 29th Aug 2012
As mentioned by "azgolfer" as of August 25th, 2012. Google has phased out it's API. Try http://www.wunderground.com/ instead.