This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
building [2014/09/02 14:09] cruisefactory [Port latitude & longitude Google maps] |
building [2018/08/31 17:26] (current) cruisefactory |
||
---|---|---|---|
Line 206: | Line 206: | ||
http:// | http:// | ||
would fetch the eflyer PDF for the special ID 1111111. | would fetch the eflyer PDF for the special ID 1111111. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Autoflyer Retrieval ===== | ||
+ | To download a special auto-flyer use the following URL: | ||
+ | http:// | ||
Line 267: | Line 274: | ||
The latitude and longitude coordinates are now included for each port within the Cruise Factory database. You can [[structure# | The latitude and longitude coordinates are now included for each port within the Cruise Factory database. You can [[structure# | ||
+ | To access a coordinate of a port you will need to have both the `ports` and `latlong` tables imported successfully. They will then link together via the `ports.id` and `latlong.port_id` columns. | ||
+ | |||
+ | For example, to retrieve all ports with their corresponding lat/long coordinates you could run a query as such: | ||
+ | |||
+ | <code sql> | ||
+ | SELECT | ||
+ | ports.*, | ||
+ | latlong.lat, | ||
+ | latlong.long | ||
+ | FROM | ||
+ | ports, | ||
+ | latlong | ||
+ | WHERE | ||
+ | ports.id=latlong.port_id | ||
+ | </ | ||
==== Google maps ==== | ==== Google maps ==== | ||
As a suggested usage for the new port coordinates we recommend using [[https:// | As a suggested usage for the new port coordinates we recommend using [[https:// | ||
+ | |||
+ | If you follow the tutorial at the link above you will have an API key to access the Google API for you own site. You will then be able to generate maps that display your selected ports using the Cruise Factory provided latitude/ | ||
+ | |||
+ | <code javascript> | ||
+ | var mapOptions = { | ||
+ | center: new google.maps.LatLng(-34.397, | ||
+ | zoom: 8 | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | By entering in (dynamically) the lat & long of the port into the above you will find that the map automatically centers on the location of the port in your Google map widget. | ||
+ | |||
+ | Read the [[https:// | ||
+ | |||
+ | ==== Amended Conditions ==== | ||
+ | Cruise lines may require specific conditions and disclaimers for the bookings and pricing. We have a table named '' | ||
+ | |||
+ | As above the required table name is '' | ||
+ | * **'' | ||
+ | * This will link to the current sailing: | ||
+ | * '' | ||
+ | * **'' | ||
+ | * This text must be displayed. Suggested under the pricing. | ||
+ | * **'' | ||
+ | * This text must be displayed. | ||
+ | * Will usually be much longer text and should be displayed under a "Terms & Conditions" |