Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

How to get an Address from X, Y Coordinates

This is a discussion on How to get an Address from X, Y Coordinates within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I should like to get the Address from the results of GetObjetctsFromPoint. If an exact address with street and ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    How to get an Address from X, Y Coordinates

    Hi,

    I should like to get the Address from the results of GetObjetctsFromPoint.


    If an exact address with street and city is found, I show it. When the information of the address doesn't exist, I want to send a message "No Exact Address found".

    Thanks for your help
    Aurelia[/img]

  2. #2
    sandeepdhankar10 is offline Junior Member White Belt
    Join Date
    May 2009
    Posts
    6

    Re: How to get an Address from X, Y Coordinates

    hello

  3. #3
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: How to get an Address from X, Y Coordinates

    Is there a question, Sandeep? Maybe this list will help ...

    '-1 geoShowByDefault
    '-2 geoShowByZoomLevel DisplayDataMap And IsGeographyForEveryZoomLevel for DataMap
    '4 geoShowByTerritory Territory
    '5 geoShowByLatLong Latitude and Longitude
    '6 geoShowByOSGridRef UK Ordnance Survey grid reference
    '7 geoShowByStreetAddress Street address
    '8 geoShowByCity City
    '9 geoShowByCensus1 Canadian Census Subdivision
    '10 geoShowByCensus2 US Census Metropolitan Area
    '12 geoShowByPostal1 US ZIP Code
    '13 geoShowByPostal2 Canadian Forward Sortation Area (FSA)
    '14 geoShowByPostal3 German Post Zone
    '15 geoShowByPostal4 Dutch Postal Code
    '16 geoShowByRegion3 Spanish Municipio
    '17 geoShowByRegion2 US County
    '18 geoShowByRegion1 US State
    '19 geoShowByCountry Country

  4. #4
    sandeepdhankar10 is offline Junior Member White Belt
    Join Date
    May 2009
    Posts
    6

    Re: How to get an Address from X, Y Coordinates

    geoShowByDefault

    geoShowByLatLong Latitude and Longitude

    these can b my question ..

    but my main aim is to show these cordinates to my win form . without any scaling or transform of win form

  5. #5
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: How to get an Address from X, Y Coordinates

    I don't understand what is required with WinForms - are you not simply adding the ActiveX control?

    As for the constants, I'm afraid this is going to be rather vague but I'll try to answer ...

    geoShowByLatLong appears to be related to data that is imported by the user by latitude and longitude, so that it has no StreetAddress value.

    According to the help file, geoShowByDefault is used only when calling the DisplayDataMap method, in which Microsoft MapPoint chooses a default ShowDataBy value for the DataSet object. I have found, however, that most items to which the user has no access will be geoShowByDefault and require an error-handler such as On Error Resume Next.

  6. #6
    sandeepdhankar10 is offline Junior Member White Belt
    Join Date
    May 2009
    Posts
    6

    Re: How to get an Address from X, Y Coordinates

    can u please name out some activex control or some samples.

    and sorry i m not clear with ur ans.
    pls tell me what to do exactly..
    actully i have to displays some geo coordinates (lat/lon) in my win form in .net.

  7. #7
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: How to get an Address from X, Y Coordinates

    Well, I just got Visual Studio 2008.
    I added the COM Object to my project using 'Add Reference'

    This is how I started out with frmMapPoint (Form1) and axMap (axMapPointControl1). I put the map template in C:\ because I
    don't know where the real one is. It shows a map - it works ...

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    namespace MattysViewer
    {
    public partial class frmMapPoint : Form
    {
    public frmMapPoint()
    {
    InitializeComponent();
    }

    private void frmMapPoint_Load(object sender, EventArgs e)
    {
    string objTemplate = "C:\\New North American Map.ptt";
    axMap.NewMap(objTemplate);

    }
    }
    }

    So, what's next?

  8. #8
    sandeepdhankar10 is offline Junior Member White Belt
    Join Date
    May 2009
    Posts
    6

    Re: How to get an Address from X, Y Coordinates

    kk grt..
    but can u pls tell me that the New North American Map.ptt contains what?
    can u pls give me the complete source code?.. with this file..

    so that i can able to understand it ..clearly.

    thx in advance.

  9. #9
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: How to get an Address from X, Y Coordinates

    It doesn't contain anything. It is the MapPoint file format for a template
    in the MapPoint Desktop product. My next step would be to import data,
    which is what I'm going to show in a few minutes.

  10. #10
    sandeepdhankar10 is offline Junior Member White Belt
    Join Date
    May 2009
    Posts
    6

    Re: How to get an Address from X, Y Coordinates

    ok i m waiting..

    but i want to let u know that i have lat/lon coordinates (e.g -112.2342133 and 56.233331211) i have to show these points on the from..

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Superkonform coordinates
    By Wilfried in forum MapPoint Desktop Discussion
    Replies: 11
    Last Post: 01-22-2005, 08:07 PM
  2. Getting current GPS coordinates in VB6
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-10-2004, 06:09 PM
  3. coordinates from a pushpin
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 04-26-2004, 12:00 PM
  4. I need some coordinates
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-25-2004, 11:56 AM
  5. Get coordinates in C#
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 10-31-2003, 08:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96