MapInfo Pro

 View Only
  • 1.  Mapinfo SDK

    Posted 08-01-2022 01:15
    Hello MapInfo team,

    We have been using MapInfo pro for more than 10 years. Would you please advise how to use sdk rather than manually get the geocode? How to get API key and secret for the sdk access?

    Thanks,
    Libo Cao

    ------------------------------
    Libo Cao
    Knowledge Community Shared Account
    ------------------------------


  • 2.  RE: Mapinfo SDK

    Employee
    Posted 08-01-2022 02:15
    Hi

    Have you had a look at the LI API Example that comes with MapBasic?

    You can find it in this subfolder in the MapBasic installation folder:
    Samples\RIBBONINTERFACE\DotNet\Li Api Example

    It should give you some ideas on how to access the LI API

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 3.  RE: Mapinfo SDK

    Posted 08-03-2022 05:37
    Thanks Peter.

    I just downloaded MapBasic yesterday, can't find Li API Example:


    ------------------------------
    Libo Cao
    Knowledge Community Shared Account
    ------------------------------



  • 4.  RE: Mapinfo SDK

    Employee
    Posted 08-03-2022 06:54
    What version of MapBasic did you install?
    MapBasic 21.1 does have that sample:


    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 5.  RE: Mapinfo SDK

    Posted 08-03-2022 22:32
    Thank you very much Peter. I downloaded the latest version :)

    From ReadMe.txt, do we have to open the project to run it manually? Is it a process to make it automatically, such as Windows task schedule to trigger a script to run the project? so we don't need a user to manually run it. Thank you very much. 

    How To Run:
    1.) Open LiApiExample.csproj
    2.) If MapInfo Pro x64 is installed in default location i.e. "C:\Program Files\MapInfo\Professional\" then you just have to build the project. In case MapInfo Pro x64 is not installed in default location then update the assembly reference path for MapInfo.Types.dll to your MapInfo Pro x64 bit installation directory and build the project.
    3.) Run LiApiExample.MBX from the project output path.

    ------------------------------
    Libo Cao
    Knowledge Community Shared Account
    ------------------------------



  • 6.  RE: Mapinfo SDK

    Posted 08-03-2022 23:27
    also from the code below, what is the baseUrl? BaseUrl = CommerceCloudApiUris.BaseUri.AbsoluteUr, is it from web? We have desktop Mapinfo pro installed and would like to get the data from Mapinfo pro, which is not available from the web cloud? 

    Thank you.

    using MapInfo.MiPro.MiLiApiClient;

    namespace MapInfo.MiPro.Samples.LiApiAddin
    {
      public class LiApiHelpers
      {
        public static string BaseUrl = CommerceCloudApiUris.BaseUri.AbsoluteUri;

      }
    }


    ------------------------------
    Libo Cao
    Knowledge Community Shared Account
    ------------------------------



  • 7.  RE: Mapinfo SDK

    Employee
    Posted 08-10-2022 06:05
    OK, maybe it's time to start over.

    What exactly are you trying to do, and do you want to do it from within MapInfo Pro?

    If you are looking to automate your geocoding process, you can probably move this outside of MapInfo Pro.
    We offer geocoding in many ways: from within MapInfo Pro, from the Precisely LI API, through a locally deploy Spectrum Spatial, and also from the Precisely Spectrum on Demand offering.

    It might be worse setting up a call with your team and a team from our side to better understand your requirements.

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 8.  RE: Mapinfo SDK

    Employee
    Posted 08-10-2022 06:00
    Hi

    This refers to the way you will have to build the solution into an add-in that can be used from within MapInfo Pro.

    You can use this example to build a tool that runs in any way you would like it to.
    This sample is probably very user driven.

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------