=== DriveQuote ===
Contributors: weboteka, zaccc, freemius
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 2.0.3
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Instant transport price quotes on your website. Route-based pricing with Google Maps, vehicle options and a client inquiry form.

== Description ==

DriveQuote turns your website into an instant transport quote tool. Your visitors enter a route, pick a vehicle and options, and get a price in seconds — then send you an inquiry. No back-and-forth emails just to give someone a number.

Built for real-world transport operators — shuttle services, minibus and coach companies, airport transfers, excursions and private drivers — who want something that works out of the box, not a bloated booking system with a hundred settings.

= Why DriveQuote =

Most transport calculators are either too basic to be useful or too complex to set up. DriveQuote sits in the middle: powerful where it counts, simple everywhere else. You can be live in minutes with the built-in setup wizard, and your pricing stays completely hidden from clients — they only ever see the final total.

= How it works =

1. Add one shortcode to any page.
2. The visitor types their pickup and destination — Google Maps autocompletes and calculates the distance.
3. They choose a vehicle, trip type and options.
4. DriveQuote calculates the price on your server (it can never be faked from the browser).
5. The visitor sends an inquiry — you get an email, they get a confirmation.

= Free version includes =

* Google Maps route calculation with address autocomplete
* One-way and return trips
* Server-side price calculation (your rates stay hidden)
* Inquiry form with email notification to you and an auto-reply to the client
* Built-in spam protection (reCAPTCHA v3)
* One-click setup wizard
* Works with a single shortcode

= Pro adds =

* Fleet Manager — multiple vehicles, each with its own pricing, photos, description and features
* Per-vehicle availability calendar — block dates so clients can't request unavailable days
* PDF quotes and invoices, including a SEPA/EPC payment QR code
* Online payments via Stripe
* Analytics dashboard — inquiries over time, top routes, estimated revenue
* Inquiry management panel with status tracking
* Multiple currencies (EUR, USD, GBP) and km or miles
* WhatsApp inquiry button
* Driver options and passenger limits per vehicle
* Priority email support

= Built right =

* Translation-ready — ships with Croatian, German, Spanish, French and Italian
* Prices are always recalculated server-side — clients cannot manipulate them
* Clean, lightweight code with no third-party tracking
* Works on any modern theme

== Installation ==

1. Upload the plugin through Plugins → Add New → Upload Plugin, or extract it into wp-content/plugins/.
2. Activate the plugin. The setup wizard opens automatically.
3. Enter your price per km, currency and inquiry email.
4. Add the shortcode [drivequote] to any page.

For route calculation, add a Google Maps API key in the plugin settings (enable Maps JavaScript API, Directions API and Places API).

== Frequently Asked Questions ==

= Do my clients see my per-km rate? =

No. Only the final total is shown. Your per-km, toll and driver rates stay on the server.

= Can a client change the price in the browser? =

No. The price is always recalculated on the server; values sent from the browser are ignored.

= Do I need a Google Maps API key? =

Yes, for map display and route distance. The key is free to create in the Google Cloud Console.

= What happens to my data if I uninstall? =

Nothing is deleted unless you enable "Delete all data on uninstall" in the settings.

== Screenshots ==

1. The transport price calculator with the route shown on a Google Map.
2. The one-click setup wizard that gets you running in minutes.
3. Fleet Manager — multiple vehicles, each with its own pricing (Pro).
4. Branded PDF quote with a payment QR code (Pro).
5. Analytics dashboard for inquiries and quotes (Pro).

== External Services ==

This plugin connects to the following external services:

= Google Maps =
Used for address autocomplete and route distance calculation. The Google Maps JavaScript API and Directions API are loaded when the calculator is displayed on the frontend. The visitor's entered addresses are sent to Google to calculate the route.
* [Google Maps Terms of Service](https://maps.google.com/help/terms_maps/)
* [Google Privacy Policy](https://policies.google.com/privacy)

= OpenStreetMap Nominatim =
Used as a fallback geocoder only when no Google Maps API key is configured. In that case, when a visitor requests a price calculation, the departure and destination addresses they entered are sent to the OpenStreetMap Nominatim search API to convert them into coordinates so the plugin can estimate the distance. When a Google Maps API key is set, this service is not contacted.
* [Nominatim Usage Policy](https://operations.osmfoundation.org/policies/nominatim/)
* [OpenStreetMap Foundation Terms of Use](https://wiki.osmfoundation.org/wiki/Terms_of_Use)
* [OpenStreetMap Foundation Privacy Policy](https://wiki.osmfoundation.org/wiki/Privacy_Policy)

= Google reCAPTCHA v3 =
Used optionally to protect the inquiry form from spam. When enabled, the reCAPTCHA script is loaded on the frontend and visitor interaction data is sent to Google for spam scoring.
* [Google reCAPTCHA Terms of Service](https://policies.google.com/terms)
* [Google Privacy Policy](https://policies.google.com/privacy)

= Freemius =
This plugin uses the Freemius SDK (included in the vendor/freemius/ directory) for plugin analytics and to facilitate the optional premium upgrade. On first activation, the site admin is asked to opt in to data sharing. No data is sent without explicit consent.
* [Freemius Terms of Service](https://freemius.com/terms/)
* [Freemius Privacy Policy](https://freemius.com/privacy/)

== Changelog ==

= 2.0.3 =
* Fixed: after completing (or skipping) the setup wizard, users were redirected to a non-existent admin page and saw "Sorry, you are not allowed to access this page". The wizard now returns to the plugin settings page correctly.
* Cleanup: removed unused translation files.

= 2.0.2 =
* Maintenance release. Tested up to WordPress 7.0.

= 2.0.1 =
* Documented the OpenStreetMap Nominatim geocoding fallback (used when no Google Maps API key is configured).
* Hardened the request rate limiter.

= 2.0.0 =
* First public release on WordPress.org: route-based transport price calculator with Google Maps, currency and distance options, vehicle selection, and a client inquiry form.
