|
| Unknown Address Workarounds |
 |
Tue, 1 Apr 2008 07:22:03 -0700 |
I am currently developing a solution to provide routing instructions. In
several cases, the addresses are very new and are not on MapPoint yet.
There will probably be a limited number of these locations (<50).
I am considering loading these missing/incorrect addresses as pushpins at
the beginning of my application. It is my understanding that the FindResults
method (I am currently using FindAddressResults) will return the locations
for these pushpins.
Any input would be greatly appreciated!
Thanks,
Michael
|
| Post Reply
|
| Re: Unknown Address Workarounds |
 |
Tue, 1 Apr 2008 13:51:03 -0700 |
Gilles,
Thanks for the insight. Do you think there is a method better than adding
the pushpins each time? Could I save with a map, and then just load that map?
Thanks Again,
- Michael
"Gilles Kohl [MVP]" wrote:
> On Tue, 1 Apr 2008 07:22:03 -0700, Michael S <Michael
> S@discussions.microsoft.com> wrote:
>
> >I am currently developing a solution to provide routing instructions.
In
> >several cases, the addresses are very new and are not on MapPoint yet.
> >
> >There will probably be a limited number of these locations (<50).
> >
> >I am considering loading these missing/incorrect addresses as pushpins
at
> >the beginning of my application. It is my understanding that the
FindResults
> >method (I am currently using FindAddressResults) will return the
locations
> >for these pushpins.
> >
> >Any input would be greatly appreciated!
> >
> >Thanks,
> >
> >Michael
>
> If MapPoint doesn't know the addresses yet, you could add the pushpins via
> their coordinates - use
>
> MapPoint.Location loc = map.GetLocation(lat, lon, 0);
>
> to get a location object, and
>
> map.AddPushpin(loc, name);
>
> to add a pushpin to the map given its location.
>
> Regards,
> Gilles [MVP].
>
> (Please reply to the group, not via email.
> Find my MVP profile with past articles / downloads here:
> http://www.gilleskohl.de/mvpprofile.htm)
>
|
| Post Reply
|
| Re: Unknown Address Workarounds |
 |
Tue, 01 Apr 2008 18:37:06 +020 |
On Tue, 1 Apr 2008 07:22:03 -0700, Michael S <Michael
S@discussions.microsoft.com> wrote:
>I am currently developing a solution to provide routing instructions. In
>several cases, the addresses are very new and are not on MapPoint yet.
>
>There will probably be a limited number of these locations (<50).
>
>I am considering loading these missing/incorrect addresses as pushpins at
>the beginning of my application. It is my understanding that the
FindResults
>method (I am currently using FindAddressResults) will return the locations
>for these pushpins.
>
>Any input would be greatly appreciated!
>
>Thanks,
>
>Michael
If MapPoint doesn't know the addresses yet, you could add the pushpins via
their coordinates - use
MapPoint.Location loc = map.GetLocation(lat, lon, 0);
to get a location object, and
map.AddPushpin(loc, name);
to add a pushpin to the map given its location.
Regards,
Gilles [MVP].
(Please reply to the group, not via email.
Find my MVP profile with past articles / downloads here:
http://www.gilleskohl.de/mvpprofile.htm)
|
| Post Reply
|
| Re: Unknown Address Workarounds |
 |
Tue, 01 Apr 2008 23:59:57 +020 |
On Tue, 1 Apr 2008 13:51:03 -0700, Michael S
<MichaelS@discussions.microsoft.com> wrote:
>Gilles,
>
>Thanks for the insight. Do you think there is a method better than adding
>the pushpins each time? Could I save with a map, and then just load that
map?
Yes, that is another alternative. You could e.g. save a template in a known
location, and use the OpenMap method of the MapPoint.Application object to
load that template. This could create conflicts if your users also use default
templates though.
Regards,
Gilles [MVP].
(Please reply to the group, not via email.
Find my MVP profile with past articles / downloads here:
http://www.gilleskohl.de/mvpprofile.htm)
|
| Post Reply
|
|
|
|
|
|
|
|
|
|