Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Stream Tweet Place StateCode

$
0
0
I have the "Streams" sample set up and running. I want to simply extract the U.S. state (AZ, IL, TX, etc.) if the tweet is Place.CountryCode = "US". It appears that Place.PlaceType 1 and 6 are relevant to me.

With Place.PlaceType = 1, Place.Name is the full state name. I can work with that.

With Place.PlaceType = 6, which is far more common, Place.Name = city/town name and Place.FullName is city/townname comma space two-letter state code. Of course, I can string manipulate my way to the state code, but I'm wondering if there is better way to get to it.

, Lee

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>