MapQuest Developer Blog

Archives for Josh Babetski

  • Geocoding and Static Map Web Services Now In Beta

    In recent weeks we've had a string of updates talking about new services and features we've been working on. Today we've got two new Web Services we're releasing into beta and a feature update for the Beta Directions Web Service.

    Geocoding Web Service

    We're jazzed to release the Geocoding Web Service into beta. You can now make a simple request containing an address and the service will return a latitude and longitude.

    http://platform.beta.mapquest.com/geocode/v1/address
    ?location=lancaster%20pa
    &key=YOUR_KEY_HERE

    You can also make a request containing the Latitude and longitude and we'll tell you the address of that location.

    http://platform.beta.mapquest.com/geocode/v1/reverse
    ?lat=40.0378
    &lng=-76.305801
    &key=YOUR_KEY_HERE

    Static Map Web Service

    While interactive and draggable maps are useful for many things, sometimes a good ol' single map image is what's needed for your application. While we've made these maps available for well over a decade, you can now build them using our new Static Map Web Service. This allows you to easily create, configure, and return a map image. this includes adding POI icons, traffic data, or shapes to you maps.

    This also means you can easily embed a map into any web page without writing or embedding any code. Just insert the map like any other image.

    http://platform.beta.mapquest.com/staticmap/v3/getmap
    ?type=map
    &size=400,200
    &zoom=7
    &center=40.054600,-76.313100
    &key=YOUR_KEY_HERE

    static map

    Directions Web Service

    Powered by our new Static Map Web Service, you can now return a static map image for each maneuver of a route narrative. Like on MapQuest.com, this will allow you to show your users a map containing additional detail of the transition to their route.

    maneuver map

    More information is available on our Developer Network Beta page and included in the MapQuest Platform: Web Services Documentation.

  • The Blog Post Referring to the Other Post Soliciting for SXSW Panel Votes

    Vote for our PanelPicker Ideas! MapQuest is on the road to Austin, Texas - hopefully to speak on panels at SXSW Interactive. Over on our sister blog for MapQuest.com, we've got an overview of the two panels we're stumping for votes:

    The Blog Post Where We Solicit for 2010 SXSW Interactive Panel Votes

    If you already know how SXSW works and want to jump straight to the voting, here's the panel info:

    Thanks for the PanelPicker votes and see you in Austin!

  • Big Beta Updates: Fun Globes, Colorful Stars, Zooming Mice, Chunked URLs and More

    So we have a bonanza of beta and preview updates to share with you. We've been busy making a number of updates to the MapQuest Platform and we've been creating new Web Services and revising our client-side SDKs.

    Here's what we've got to show you today:

    AS3 SDK 6.0 - NEW!

    We're happy to introduce the preview release of our AS3 SDKs, Version 6.0. This rewrite makes the SDK more modular, create smaller final .swfs, and add and improve a number of new features like:

    • POI Decluttering Refactored
    • globe view / ocean breeze controls screenOur popular Globe View has been refactored and made a separate component. We've even added a handy feature to let the globe reorient itself when you've turned your world upside-down.
    • New Control Component style (Ocean Breeze) to match the ones available on MapQuest.com
    • Raster images are now remotely loaded. So your application only pulls in what's needed
    • Overview map control added
    • Mouse-wheel zoom controls and keyboard controls added
    • We've added a vector-based POI star. It's scalable and color-customizable too.

    vector stars

    Download and check out samples from our Beta page.

    JavaScript SDKs 6.0 - UPDATED!

    In this update, we've added:

    • Route Options for tailoring your route
    • Toggle Route Dragging on and off
    • Basic mouse wheel support for zooming

    Check out the updated documentation and samples here.

    Long URL Web Service - NEW!

    Today also marks the introduction of a new service which will allow you to manage large GET requests in Internet Explorer, which can't handle them. While we've put a lot of effort into making our URLs smaller and sane to the human eye, there are still scenarios where a complex request can get pretty beefy. Our new Long URL Web Service will automatically chunk-up the request and still be able to use a JSONP callback in the response.

    Directions Web Service - UPDATED!

    In our fourth feature release, we've now added draggable routes to the service. You now have the option of adding draggable routes through the Directions Web Service or our JavaScript SDK 6.0.

    We've also added a Route Shape feature. This will allow you to return a route shape from a previous request without have to re-run the route.

    Even more features and updates are in the works. Stay Tuned.

  • MapQuest Platform: JavaScript SDK 6.0 Preview Release with Draggable Routes

    Today we've released a preview of our upcoming 6.0 version of the MapQuest Platform: JavaScript SDK. This version release is a complete overhaul of the code base and designed to be more modular, more lightweight, and easier-to-use code. We've also simplified our documentation, making it easier to follow and reference and complete with inline samples and source-code snippets.

    One notable feature in this initial release is that Draggable Route functionality is included. This will allow developers to build applications that let their users dynamically edit their directions right from the map.

    drag route screenshot

    Find out more information on our Developer Network Beta Page, and we welcome your feedback.

  • Directions Web Service Beta Adds Route Matrix Feature

    Last week we pushed out Optimized Routing to our Directions Web Service beta. The week before that we introduced our new Directions Web Service. Today we're making the Route Matrix feature available.

    A Route Matrix request in the Directions Web Service will return a quick and easy calculation of the distances and drive times between a bunch of points.

    In the table below, we want to compare the times and distances between:

    • York, PA
    • Lancaster, PA
    • Boalsburg, PA
    • and Sunbury, PA

    You'd ask the Directions Web Service something like this:

        REQUEST URL:
     http://platform.beta.mapquest.com/directions/v1/routematrix?key=YOUR_KEY_HERE
    
        REQUEST BODY:
        {
           locations: [
              "York, PA",
              "Lancaster, PA",
              "Boalsburg, PA",
              "Sunbury, PA"
           ],
           options: {
              allToAll: true
           }
        }
      

    And with the results, you could display something like this:

    Driving distance (in miles)

    TO
    FROM
    York, PA Lancaster, PA Boalsburg, PA Sunbury, PA
    York, PA 0.00 25.68 107.85 78.45
    Lancaster, PA 25.92 0.00 120.64 91.25
    Boalsburg, PA 107.42 120.94 0.00 62.48
    Sunbury, PA 78.84 92.36 61.80 0.00

    Driving times (in seconds)

    TO
    FROM
    York, PA Lancaster, PA Boalsburg, PA Sunbury, PA
    York, PA 0 2260 7253 5930
    Lancaster, PA 2348 0 7771 6448
    Boalsburg, PA 7350 7816 0 5098
    Sunbury, PA 6048 6514 5019 0

    Check out the complete documentation for Route Matrix and the rest of the Directions Web Service Beta and please continue to send us your feedback.