A student is learning REST API application. The student constructs an URI to query the MapQuest API for a route from New York, NY to Boston, MA. What is the valid URI format?

  • https://www.mapquestapi.com/directions/v2/route?key== ke y&from==New+York%2C+NY&to==Boston%2C+MA
  • https://www.mapquestapi.com/directions/v2/route?key=key &from=New+York%2C+NY&to=Boston%2C+MA
  • https://www.mapquestapi.com/directions/v2/route?key: key &from:New+York%2C+NY&to:Boston%2C+MA
  • https://www.mapquestapi.com/directions/v2/route?key=key &from=New+York+NY&to=Boston+MA