TourCMS, a leading online booking and channel management solution is operated by Palisis.

Contact Info

Palisis AG
Florastrasse 18A
8610 Uster
support@palisis.com
+41 44 533 40 40

Follow Us

home > support > API > Marketplace API > API: delete_tour_geopoint

Delete a tour geopoint

Deletes a tour geopoint.


Notes

For Tour Operator usage only (not accessible by Marketplace Agents).

REST info

Endpoint/api/tours/geos/delete
FormatsXML
Example/api/tours/geos/delete.xml
VerbPOST

Code samples

PHP examples use the PHP Client Library with the return type set to SimpleXML


Description

object delete_tour_geopoint(SimpleXmlElement $geopoint, int $channel)


Parameters

$geopoint
SimpleXmlElement containing the tour geopoint data.
$channel
ID number for the channel this tours which geopoint belongs to.


Example


      // Create a new SimpleXMLElement with  tour geopoint details.
      $geopoint = new SimpleXMLElement('<geopoint />');
      $geopoint->tour_id = 68;
      $geopoint->loc_type = 'm';
      $geopoint->geo_order = 1;
      // Define the channel ID the tour belongs to.
      $channel = 3930;
      // Call TourCMS API, deleting the tour geopoint.
      $result = $tourcms->delete_tour_geopoint($geopoint, $channel);
      if ($result->error == "OK") {
        print "Tour Geopoint deleted";
      } else {
        print $result->error;
      }
    
Tour Geopoint deleted

Looking for sample code in a different language? TourCMS and community provided API libraries

Querystring parameters

There are no querystring parameters.

Post fields

The following fields can be posted as XML when calling the API method. The tour_id is the only required field.

POST fields
XML NODENotes
geocode

Tour geopoint node contains:

XML NodeNotes
tour_id The id of the tour id where we are going to delete the tour geopoint.This is a mandatory field.
loc_type s / e / m
If is a start point. An end point. Or a midpoint.
 
s = Start point (A tour start point)
e = End point (A tour end point)
m = A middle point. Could be a hop on / hop off bus stop or a tour map calling point.
geo_order Numerical order the midpoint appears within the tour, lowest numbers first. Unless managing geo points via API you should not need this value as midpoints are returned in order.

Response fields

Response fields
XML NodeNotes
request Confirmation of the request that you sent
error Any error message returned, if there is no error this will just contain the text OK

More information