-
Book Overview & Buying
-
Table Of Contents
Learning Bing Maps API
By :
The Great Britain's Ordnance Survey provides a product named Open Data that offers a wide range of digital map products, which you can freely view or download for use in both personal and commercial applications (as specified in their website available at http://www.ordnancesurvey.co.uk/business-and-government/products/opendata-products.html). We need the shapes for the different areas of the London Assembly, and their boundary-line product provides the necessary files.
The latter are in the ESRI Shapefile format, which we need to convert into sequences of coordinates that Microsoft.Maps API understands. The conversion is outside the scope of this book, but if you are interested to see how it was done, you can check the shape_reader.rb file—a Ruby script in the code bundle.
The electoral results are supplied by the London Elects website available at http://www.londonelects.org.uk/im-voter/results-and-past-elections/results-2012.
At the end of the conversion, our data file looks as...
Change the font size
Change margin width
Change background colour