Chapter

Location Input Module

Location Input Module

The Location Input module in Yahoo Pipes allows the user to specify a geographic location. Useful for limiting search results to a specific location. Also allows results to be plotted on a map. Here are some examples of valid locations:

  • Beverly Hills, California
  • Rodeo Drive, Beverly Hills, CA
  • 90210
  • 40.739777,-73.660387

The location datatype provides some or all of these fields depending on the accuracy of the location provided:

  • Country
  • Street
  • Lat
  • Postal
  • State
  • City
  • Lon
  • Quality

The quality score is an indication of the accuracy of the location provided. A specific street address will usually have a quality score of 80 or higher. Providing just a city name will return a quality score of about 40, and just a country name will return a score of about 10 (1-100, 100 being most accurate) in Yahoo Pipes.

In this example, we’ll create a prompt for users to enter their place of birth.

We’ll call the input “birthplace”, set the prompt as “Enter Your Birthplace”, set the position as “1”, default as “45600 Menholm Road Chilliwack, BC”, and the debug “45600 Menholm Road Chilliwack, BC”.

Location Input Module

If we look in the Debugger pane, we can see that Pipes provides us with some detailed information about this location including:

  • Country
  • Street
  • Latitude
  • Postal code
  • State
  • City
  • Longitude
  • Quality score

Location Input Module

We can then take this location and wire it into different modules for further processing, and even present our data on an interactive map.

0 Comments ↓

No comments yet.

Leave a Reply