none
Locations API - Geocode Addresses in a Database RRS feed

  • Question

  • Can the Locations API (using REST Services) be used to Geocode a few addresses in a database with out displaying any information or maps within or from an application? Basically, I want to take a few customer addresses, find their Lat and Long, and calculate the distance to one of our company locations and store that distance in our SQL Server database without violating any Microsoft Terms of Use.

    If I cannot use the Locations API, does Microsoft offer something that I can use to achieve similar results?

    • Moved by Ricky_Brundritt Saturday, March 10, 2012 10:07 AM (From:Bing Maps: Map Control and Web services Development)
    Wednesday, July 6, 2011 2:09 PM

Answers

  • Well, if you use the geocodes on a map then pull out the distances then it would be within the ToS based on what is written. For 100% confirmation on what you want you should contact the licensing department at maplic@microsoft.com 
    Windows Live Developer MVP - http://rbrundritt.wordpress.com | http://inknowledge.co.uk
    • Marked as answer by Ricky_Brundritt Wednesday, September 14, 2011 7:50 PM
    Wednesday, July 20, 2011 7:16 PM

All replies

  • Pls go through terms of usage of Bing Maps API's http://www.microsoft.com/maps/product/terms.html to know the limitations of use.

    I believe if your implemetation violates the terms, then alternative solutions will too violate the terms of use.


    MSFT
    Hemant Goyal
    Monday, July 11, 2011 4:27 PM
  • Gecoding addresses and then using their coordinates to then calculate distances between locations is a valid way to use the service. Note that to calculate the straight line distance you will want to use the Haversine formula. If using SQL 2008 the spatial tools can be used to calculate this distance. If you want a more realistic distance you can also use the routing service to calculate the driving distance to each location and then store this distance.
    Windows Live Developer MVP - http://rbrundritt.wordpress.com | http://inknowledge.co.uk
    Monday, July 11, 2011 5:44 PM
  • Ricky - are you sure that's a valid use? See point 3 on the ToS restrictions:

    "You may not.... use geocodes other than in conjunction with a Bing Map or an application that integrates Bing Maps"

    Does that mean you have to display a geocoded result on a map?

    (admittedly, I don't remember seeing that in the past - there's no change history for the ToS though)


    twitter: @alastaira blog: http://alastaira.wordpress.com/
    Monday, July 11, 2011 6:12 PM
    Moderator
  • Can anyone confirm one way or the other.... 100%?
    Wednesday, July 20, 2011 1:48 PM
  • Well, if you use the geocodes on a map then pull out the distances then it would be within the ToS based on what is written. For 100% confirmation on what you want you should contact the licensing department at maplic@microsoft.com 
    Windows Live Developer MVP - http://rbrundritt.wordpress.com | http://inknowledge.co.uk
    • Marked as answer by Ricky_Brundritt Wednesday, September 14, 2011 7:50 PM
    Wednesday, July 20, 2011 7:16 PM