ISO for the country of Sint Maarten missing

  • 1
  • Problem
  • Updated 4 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 4 years ago

  • 1
Photo of Tim Roche

Tim Roche, Official Rep

  • 317 Posts
  • 28 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.
http://autocomplete.wunderground.com/aq?query=Philipsburg,%20Sint%20Maarten
documentation here
http://www.wunderground.com/weather/api/d/docs?d=autocomplete-api
Photo of afelicioni

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:
/geolookup/q/SXM.json
or
/geolookup/q/18.040833,-63.108889.json
returns
ISINTMAA3 
ISAINTMA3
IANGUILL3
ISAINTBA10
ISTBARTH2
so I'm afraid something is still missing, but with any of these codes is still possibile to build urls as
/q/pws:ISINTMAA3.json
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.