Tres London -MSFT


I have a question about this app I'm trying to build. This is my setup.

I have 2 Facebook blocks, 1 Geoname, and 1 Virtual Earth.

FB1 (calls getFriends), then connects to FB2 (calls getUserInfo).

FB2 connects to Geonames and gives it a city/state.

Geonames then connects to Virtual Earth to provide the longitude and latitude.

However, when I preview it I only see Virtual Earth and I don't see anything different about the map. I don't see any pushpins added. It just looks the same. When I go to my saved projects and look at it, it also does not show any pushpins.

Ideas





Re: Virtual Earth

AndyS


Could you post your user name and the name of the project so we can look into it

Thanks!





Re: Virtual Earth

Tres London - MSFT

My user is t-tresl and the project is called "View All Your Friends Pics". However, the project name no longer really makes sense because I've been changing it around. Thanks.







Re: Virtual Earth

RealHeartMozart [msft]

Hi Tres,

Your mashup makes sense and it seems like it should work. So I dug a little deeper by ripping it, Preview, and Show Console. In the console you see a series of error messages like:

GeoNames:
WARNING: Problem with item #1: geonames's lookupOnCityState operation requires a value for City, but no value has been given!
WARNING: Problem with item #2: geonames's lookupOnCityState operation requires one of the following values for State: Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,District of Columbia,Florida,Georgia,Hawaii,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Missouri,Montana,Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Ohio,Oklahoma,Oregon,Pennsylvania,Rhode Island,South Carolina,South Dakota,Tennessee,Texas,Utah,Vermont,Virginia,Washington,West Virginia,Wisconsin,Wyoming. However, the value WA has been given instead!

So there are basically two problems:

1. Some friends have not tagged their data with city or state.

You could try to filter these out but invalid latitude and longitude should just do nothing, so you could also leave this be. (I'm assuming you don't want to nag your friends about adding these data. Smile )

2. Other friends have tagged with city and state, but Facebook uses state abbreviations like "WA" and Geonames expects state names like "Washington".

I could imagine a couple of approaches for getting around this, like creating your own version of the Facebook or Geonames blocks... however I think that a more generally useful approach would be to create a block that can map data from one pattern to another. You could start with a block that maps state abbreviations to state names (getting your mashup to work) and then later enhance it with other types of mappings.

Hope that helps! Keep us posted on how it's going...

--Michael