Streets's profileStreets & Trips SpacePhotosBlogLists Tools Help

Blog


    How to Customize the Default Map Template

    Here is a helpful tip that many folks have asked me about.  It is all documented in the help file but who reads that, right? :-)

    Note: This applies to all versions of Streets & Trips.

    Out of the box when you launch S&T - you will get the default North America Map View:

    STDefaultMap 

    The application reads a file called "New North America Map.stt".  You can replace this file with a custom map view that is geographically more relevant to your location.  For example, if I want to show the New York area with pushpins showing all the Wall-Mart locations (download Wallmart zip file from http://www.discoveryowners.com/cginfolinks.htm).

    Load the map file and get the zoom and position exactly how you want it for the default.

    Step 1: Choose File | Save as... "Map Template (*.stt)

    Step1

    Step 2: Save in the required location (C:\Program Files\Microsoft Streets & Trips\Templates\)

    Step2 

    Step 3:  Overwrite the existing "New North America Map.stt".  Optionally, you may choose to make a copy of the original template file under another name if you ever want to go back to it.

    Step3

    Step 4:  Confirm (click 'Yes') to overwrite existing file.

    Step4

    That's it.  Now try it out.  Whenever you launch the application you will see your custom map.  How cool!

    Traveling Salesman problem in Streets and Trips

    The Virtual Earth / Live Maps blog has recently created a post about route optimization and why S&T has it yet the online sites do not.
     
    I saw this post on SlashGeo yesterday asking about solving the traveling salesman problem in online maps, and more specifically why no one has done it. I think there are a few reasons starting with the fact that route optimization isn't something most of us need to do very often. but probably more importantly, when done correctly route optimization is pretty cpu intensive and most web users of online mapping software wouldn't want to wait for the results. For in-city trips, not so bad, but spread your stops over a larger area and it can be costly. You can cut corners by eliminating a number of possibilities with fast crow-flies estimates, but that's cheating and will yield crappy results. Any online mapping site could provide this functionality, but i'm not sure anyone would be happy with the results or perf.

    As for solving via a Web API, this is also possible but would take a lot of real-time. if your optimization code sits close to the routing engine you can solve much more quickly, but for the number of remote calls needed latency kills. Most applications that call for this type of functionality (logistics, delivery, etc...) have their own optimization code that needs to consider more than just time and distance (its cheaper to run a truck with a full take of gas downhill for instance)

    But for the rest of us, there's Streets and Trips :-) S&T solves the traveling salesman problem quite well and is a popular and easy to use feature especially among business travelers. To use it, just add your stops to a route, hit the 'optimize stops' button on the directions panel, then wait while S&T crunches away. When its done your stops are presented in optimal order. You can even specify stop restrictions such as the time of day you need to be at a particular location! Below are screen shots of the process.

    DEVELOPER NOTE: MapPoint 200X has the same functionality built in and is exposed via our API making MapPoint a popular choice in logistics and fleet management applications. Check it out if you need to add this type of calculation to your apps.

    Here's a look at how to solve the traveling salesman problem with Streets and Trips or MapPoint 200X:

    1. Add Your stops. Here I am traveling around Portland. The trip starts at my hotel and ends at the airport. In between I have 6 stops to make.

    image

    2. Optionally Set Restrictions on stops. I want to leave my Hotel at 9am and be at 148th Ave at noon for lunch. the other stops are flexible. Oh, and I need to finish at the airport.

    image

    3. Optionally set other global options. The optimizer can consider many factors that you can control such as rest stops and your personal tolerance for being late.

    image

    4. Hit the optimize Stops Button. For this trip consisting of 8 stops in the same city, it took about 8 seconds on my modest laptop.

    image

    image

    Here are the re-ordered stops:
    image

    5. Calculate directions. Now that your stops are optimized, you probably want Streets and Trips to give you directions between all of them. Hit the 'Get Directions' button.

    image

    If you have a GPS device connected to your laptop, S&T will also give you voice assisted navigation instructions as you drive.

    Recovering from CES

    S&T Kiosk at CES 2008 Wow. It is hard to believe that the Consumer Electronics Show wrapped up over a week ago already. I'm still recovering! It is a well known fact that attending CES can be often more effective than a flu-shot. You spend a week talking and shaking hands with people from around the world and then return home to find you've caught some virulent airborne contagion that will wipe you out for another week. Once you recover from your respitory illness, you are never sick for the rest of the year.  (*fingers crossed*)

    In the future, I will be blogging about what we've been working on for Streets & Trips 2009 such as the much needed enhancements in the User Interface to make the application easier to use,  additions to the MSN Direct Services for the Connected Services edition, and improvement to the search functionality, just to name a few.LiveSearchMobile

    On a side note, I was blown away by the number of folks that told me they still use Pocket Streets and could pull out their  mobile device and show it to me installed.  We haven't shipped that since MapPoint 2006 and yet it clearly met a need for a certain niche of users.  A couple years back there was a business decision made to focus on offering a free connected mobile solution (More info at: http://www.livesearchmobile.com/ or Direct download of Live Search for Windows Mobile --> here).

    More to come...thanks for your patience.