Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Mapquest distance api

17/03/2021 Client: saad24vbs Deadline: 2 Day

CS A131 Fall 2017 Final Project: 100pts Due: Mon 12/11/2017 11:59PM

Final Project: Driving Directions

**This project is adapted from Alex Thornton

Your program will describe a trip taken between a sequence of locations, the goal being to travel from the first location to the second, then from the second location to the third, and so on, until reaching the last location. Based on the user’s input, it will show different information about the trip, such as turn-by-turn directions, distances and times, etc.

1 Mapquest and Open Data APIs

For our work on this project, we’ll need both the Open Directions Service and the Open Elevation Service. Both of these are web-based APIs. The Open MapQuest API uses HTTP, with queries described using a URL, and with responses returned in JSON (JavaScript Object Notation)format.

The two APIs you’ll need are described in detail at the links below. You certainly won’t need to read all of the documentation, but you’ll want to take a look around and familiarize yourself with what the API can do, because part of your goal in this project is to decide what parts of the API you’ll need to solve your problem.

• MapQuest Open Directions Service documentation

• MapQuest Open Elevation Service documentation

1.1 Creating an account and getting an API Key

MapQuest’s API requires an API Key, which links your usage of the API to an account and authorizes you to use the API. Before you can make use of the API, you’ll need to obtain your own API Key. Do not share your API Key with other students! You’ll only need to do this once, and you’ll be able to use your API Key for all of your work on this project once it’s been created. Obtaining the API Key is free for non-commercial use.

1.2 Visit the MapQuest Developer site in your browser.

1. Part of the way down the page, you’ll see a button that says Get Your Free API Key. Click that button. (Note if the button isn’t there, wait a little while and it’ll be back.)

2. A form will be displayed, in which you can choose a username, a password, and so on. Fill in the necessary information, and be sure to use an email address that you have access to; you’ll need to receive emails from MapQuest along the way.

1

http://open.mapquestapi.com/directions/
http://open.mapquestapi.com/elevation/
https://developer.mapquest.com/
CS A131 Fall 2017 Final Project: 100pts Due: Mon 12/11/2017 11:59PM

3. Once you’ve created your account, you’ll be logged in and presented with some choices, click on Manage Keys.

4. Click on Create a New Key to get an API Key that allows you to use the Open MapQuest APIs.

5. When asked, supply an App Name (csa131 pymap).

Now that your key has been created within your MapQuest Developer profile, you will be able to obtain your API key. Click the name of your application, which you should now see on the page, which will reveal more information about it. Make a note of both the Consumer Key and Consumer Secret somewhere; you’ll need these later. Notice that there is a limit on the number of times you can use the API each month–currently 15,000 transactions per month–and that you can see in this same area of the MapQuest Developer web site how many of these transactions you’ve used at any given time. The limit should be plenty for our use, but you may nonetheless want to keep an eye on it. After you’ve completed this process, your MapQuest API Key will have been created, though it should be noted that it might take a little bit of time for it to become active, so don’t panic if you’re not able to use it right away.

1.3 Testing your API Key

Wait a little while after creating your API Key, then it’s time to test that it’s working. Open your favorite web browser; enter a URL in the following format into the browser’s address bar and press Enter, replacing APIKEY with the Consumer Key part of the API key that you created in the previous step.

http :// open.mapquestapi.com/directions/v2/route?key=APIKEY&from=Irvine %2CCA\&to=Los+Angeles

%2CCA

If successful, you should receive a result that looks roughly like this (though you’ll get a lot more output than this):

{"route":{"hasTollRoad":false ,"computedWaypoints":[],"fuelUsed":1.93,"hasUnpaved":false ,"

hasHighway":true ,"realTime":-1,"boundingBox":{"ul":{"lng": -118.244476 ,"lat":34.057094} ,"

lr":{"lng": -117.794593 ,"lat":33.6847}} ,"distance":40.675 ,"time":2518,"locationSequence"

:[0,1],"hasSeasonalClosure":false ,"sessionId":"545ca8d0 -03c3 -001e-02b7 -7cb8 -00163 edfa317

","locations":[{"latLng":{"lng": -117.825982 ,"lat":33.685697} ,"adminArea4":"Orange County

","adminArea5Type":"City","adminArea4Type":"County","adminArea5":"Irvine","street":"","

adminArea1":"US","adminArea3":"CA","type":"s","displayLatLng":{"lng": -117.825981 ,"lat"

:33.685695} ,"linkId":44589954 ,"postalCode":"","sideOfStreet":"N","dragPoint":false ,"

adminArea1Type":"Country","geocodeQuality":"CITY","geocodeQualityCode":"A5XCX","

adminArea3Type":"State"},

...

This format is JSON (JavaScript Object Notation), which is a common format of information returned from web APIs like this one. Unfortunately, it’s not presented in a way that’s particularly readable for us–though, in general, that’s not a problem for our program, because our program doesn’t have the same aesthetic needs that we do. To take your first look at what’s being returned, you might find it useful to copy all of the text

2

CS A131 Fall 2017 Final Project: 100pts Due: Mon 12/11/2017 11:59PM

returned to you, then visit jsonprettyprint.com and paste the text and ask for it to be “pretty-printed”. You’ll now see the same text, but spaced in a way that will make its structure more obvious to a human reader.

Once it’s “pretty-printed,” take a look through MapQuest’s response–don’t worry if you don’t understand every detail, but start to get a rough sense of what kind of information is available and how it’s organized. When you want to know the details, the API documentation will explain everything you need, and you’ll find that you can discover a lot of the details through additional experimentation. But it’s important that you allow yourself to build an understanding gradually; this is not something you’ll necessarily be able to figure out right away, but a lot of the information won’t turn out to be relevant in this project, anyway. One characteristic that distinguishes real-world work from the often-sanitized kinds of projects you do in courses like this is the need to find small nuggets of information you need amongst large amounts of documentation that is largely irrelevant to the problem you want to solve.

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Isabella K.
A+GRADE HELPER
Homework Tutor
Smart Tutor
Top Writing Guru
Pro Writer
Writer Writer Name Offer Chat
Isabella K.

ONLINE

Isabella K.

I have read your project details. I can do this within your deadline.

$67 Chat With Writer
A+GRADE HELPER

ONLINE

A+GRADE HELPER

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$16 Chat With Writer
Homework Tutor

ONLINE

Homework Tutor

I have read and understood all your initial requirements, and I am very professional in this task.

$73 Chat With Writer
Smart Tutor

ONLINE

Smart Tutor

I have read your project details. I can do this within your deadline.

$77 Chat With Writer
Top Writing Guru

ONLINE

Top Writing Guru

I will cover all the points which you have mentioned in your project details.

$67 Chat With Writer
Pro Writer

ONLINE

Pro Writer

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$47 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

How to translate europass cv - EC #2 - COM301 - Silicon metal or nonmetal - Declare a 8x8 two dimensional array of strings named chessboard - M 16 bolt torque - Definition of accountability in nursing - Ascending and descending tracts - Applied behavior analysis for teachers 9th ed - Week 1 organ and leader - American government - When is year of wonders set - Gresham real estate fund - Business Operation Paper 1 - Sunset road family doctors - Question - Global wine war 2009 new world versus old - No promises in the wind sparknotes - Bi5 - Tomorrow - I need help for capsim - 5.5 a cad model features conclusion answers - Kaℒa jadu ≼ 91-9829866507 ≽ ℒovℰ vashikaran specialist molvi ji, KUWAIT ITALY, MALASIYA - Hardy cross method fluid mechanics - Waren sports supply year end worksheet - What is the difference between personal and professional ethics - Aaahq.org/asclogin.cfm - Acc chem res 2012 - The work in process inventory account of a manufacturing corporation - 18.3 cm to inches - Deloitte change management toolkit - Amazon resources capabilities and core competencies - University of bath map - Vybrant multicolor cell labeling kit - Pathophysiology (24 hours) - Discussion 1- How will Blockchain increase transparency and accountability in marketing? - 200words - Peter hockley speech pathologist - Organizational behavior a critical thinking approach pdf - Mgt - Laural home smoky x ray of eucalyptus leaves shower curtain - Find all ideals of z12 - Balance exercises for seniors mayo clinic - Ib economics ia cover sheet - Theoretical basis for nursing 4th ed - Sigma aldrich msds sheets - Hot assets unrealized receivables - The way we live now susan sontag - Job instruction sheet for counter person - Hay points guide chart - 1766 l32bxba analog input - Future value sinking fund calculator - Maya angelou poems for elementary students - Beko wm5100w not spinning - Cja 305 week 3 worksheet answers - Ccc financial solutions no 2 pty ltd - Response - Breaking into information security learning the ropes 101 pdf download - Humorous verse crossword clue - Cisco mx300 user guide - Vortex company operates a retail store with two departments - Prepare a diagram 0 dfd for new century - Spotter network test answers - Assignment - Vyanjan meaning in english - Keith rn case study answers - How did jokubas szedvilas say he would help the family - Critical thinking - Dhashvanth name meaning in tamil - Calculate the ratio of effusion rates for ar and kr - Shutterfly business model - The elder one harry potter - Order 2207900: Changes in relationships between various stakeholders & impact on exposure to liability - Respond to 2 colleagues 1 paragraph each Colleague Wk5D1 - Unfiltered society treats sex workers as second class citizens - Laurence steinberg on the nature vs nurture debate - Dc62 research server room - Elements compounds and mixtures experiments - Charles le brun drawings - Critical readings of othello - Discussion - Mathematics of buying and selling exercises - Judith lorber believing is seeingSummary - Hw1 - It planning at modmeters case study - Career Exploration Paper - Penn foster american history textbook - Better days chords franco - Iag nestle com password manager - Agency - Estimate the quotient 555 divided by 8 - Ima statement of ethical professional practice citation - Diffusion experiment potassium permanganate - Worldly wise crossword clue - Brave new world script - Case study 1 transforming the organization - The last stand of fox company free pdf - Assignment - 3 replies 200 words each - Mhc pms in software engineering - Tenon saw and bench hook