Community of VE/MapPoint Users and Developers
This is a discussion on Help for a delphi program within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I should make a program in Delphi to show a route with a list of destinations. I need an example ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Hi, You should use "Search" engine here ! You will find a lot of topics concerning Delphi. as http://www.mp2kmag.com/a65--delphi.e....mappoint.html ( Is Delphi easy to use ? ) Rgds |
| |||
|
Hi Mohamed, Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Example in delphi
I already read the example nr 65 and other examples in the forum, but they are not sufficient for my use. I'm searching for an example to design a route with a list of 10-20 address and to know the cost,price and distance. |
| |||
|
Hi, Thisi is how to calc a route from an address in Delphi: Code: var
RT: Route;
Loc: Location;
Results: FindResults;
i: OleVariant;
begin
RT := FMap.ActiveRoute;
RT.Clear;
i := 1;
Results := FMap.FindAddressResults(Street1, Place1, '', '', PostC1, GeoCountryBelgium);
if Results.ResultsQuality = geoNoResults then
Exit;
Loc := Location(Results.Item[i]);
RT.Waypoints.Add(Loc, '');
Results := FMap.FindAddressResults(Street2, Place2, '', '', PostC2, GeoCountryBelgium);
if Results.ResultsQuality = geoNoResults then
Exit;
Loc := Location(Results.Item[i]);
RT.Waypoints.Add(Loc, '');
RT.Calculate;
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi, Quote:
Code: RT.DriverProfile.PreferredRoads[geoRoadInterstate] := 0.8; RT.DriverProfile.PreferredRoads[geoRoadStreet] := 0.5; // etc RT.DriverProfile.Speed[geoRoadInterstate] := 160; RT.DriverProfile.Speed[geoRoadStreet] := 50; // etc
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi, What is the offending line of code ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
I get a Invalid Class String from this line of code : Code: OleContainer.CreateObject('MapPoint.Map.EU.11', False); |
| |||
|
Hi, did you include Mappoint_TLB in the uses clause ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems depoying a program | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-04-2005 02:24 PM |
| Sync display and program? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-29-2005 03:37 AM |
| My boss is looking for a softwear program into whi.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-29-2001 11:18 AM |
| Looking for a program where I can plug in zip code.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-09-2001 07:05 AM |
| Where can I get information or program upgrades to.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-11-2001 03:00 PM |
Stansted Flights
Stansted flights are great value when you book with Holiday Hypermarket. You can find plenty of information about destinations and even UK airports online at Holiday Hypermarket.
Flights to Greece
Find cheap flights to Greece on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Greece.
Flight
When looking to jet set off, make sure you check out dealchecker.co.uk before you check in anywhere else. Bag a bargain flight from all major scheduled and charter airlines.
Sri Lanka Holidays
There are some outstanding deals on Sri Lanka holidays at theholidayplace.co.uk. Sri Lanka is renowned for it's exceptional beauty! Book a holiday today!
Balearics
Before booking to the Balearics Islands make sure you check out our travel guide online. The Balearics are renowned for their vibrant nightlife but there are also some stunning Gothic cathedrals, Stone Age ruins and fishing villages.
Price Comparisons
Search and compare millions of holidays, flights and hotels etc. At Travel.co.uk, price comparisons are easy.
Holidays in Fuerteventura
Need a break? Go to the Canary Islands! Find information on holidays in Fuerteventura at On The Beach.