Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like my app to open up MapMarker and automatically geocode for me. I cannot get past the Open Connection statement as I am receiving an error while compiling. Here is the code:

Include "mapbasic.def"

Dim CnctNum As Integer
CnctNum = 1

Open Connection into Variable CnctNum Service Geocode MapMarker
Interactive off

The error that I am receiving says "Found [interactive] while searching for [url]." I am only looking to connect to MapMarker so I am not sure why I am receiving this error.

share|improve this question
up vote 1 down vote accepted

You still need to specify an URL for your MapMarker service. I can see from the syntax that it's not that clear that you have to, but you do.

I think the syntax should look more like this:

Open Connection Service
    { Geocode [ MapMarker | Envinsa ] | Isogram } 
    URL URLstring 
    [ User name_string [ Password pwd_string ] ] 
    [ Interactive [ On | Off ] ]
     into variable var_name 

Hope that helps

share|improve this answer
That makes sense. Thank you Peter. – user15642 May 23 '13 at 19:23
I have asked our documentation to imrpove the help on this topic. Should be fixed with the upcoming version 12.0 – Peter Horsbøll Møller May 24 '13 at 10:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.