ISO for the country of Sint Maarten missing

  • 1
  • Problem
  • Updated 5 years ago
ISO (i.e. SX) for the country of Sint Maarten is missing as well as Guadeloupe (GP) which is technically a department of France. I am trying to use an API that searches by city however I cannot get it to load any of the 3 weather stations listed for the island. 

The island's name is "Saint Martin", the Dutch part is an independent country named "Sint Maarten" (and not Saint Maartin as is listed for the Princess Juliana International) with ISO country code SX and the other side is called "Saint-Martin" and is part of France in the department Guadeloupe. For the French side the interpretation the city would be Saint-Martin, FR or Saint-Martin, GP (the weather station in Concordia would fall under that city.) The correct city for Princess Juliana International would actually be "Simpson Bay"

Please can you tell me what must be filled in the as the City and Country to get data for any one of these 3 weather stations as I have tried many variations and all I get is an error stating the City does not exist.
Photo of Vaughn Thompson

Vaughn Thompson

  • 2 Posts
  • 0 Reply Likes
  • frustrated

Posted 5 years ago

  • 1
Photo of Tim Roche

Tim Roche, Official Rep

  • 356 Posts
  • 53 Reply Likes
please use the autocomplete API to get the correct link for your cities, Some smaller cities are not supported directly by name lookup.,%20Sint%20Maarten
documentation here
Photo of afelicioni


  • 227 Posts
  • 43 Reply Likes
Really frustrating indeed :( hoping to be helpful someway with the next following lines.

Querying for Princess Juliana International Airport code SXM or its coordinates, a list of neighbor stations get returned, so:
so I'm afraid something is still missing, but with any of these codes is still possibile to build urls as
so may be a hint to refine and focus in approach to the real big picture
Photo of Vaughn Thompson

Vaughn Thompson

  • 2 Posts
  • 0 Reply Likes
Thanks for your reply. The problem with this is that most 3rd party modules for Joomla that use your API only code for search by City which makes it difficult for smaller locations. After much searching I could not find any that allow me to use the other parameters. I eventually had to use one from another API that allowed me to enter co-ordinate information. I will consider custom coding a better module that makes better use of your API when I have the time available.