General:
When constructing URLs with parameters, it's important to adhere to certain conventions and encoding standards to ensure that the URL is correctly interpreted by web browsers and servers. Here are some key conventions to consider:
URL Encoding:
Special characters in URLs need to be encoded to ensure they are correctly processed. This process is known as URL encoding or percent encoding.
Spaces are encoded as
%20. For example, in&Brands=Jaguar,Land%20Rover, the%20represents a space in "Land Rover".Other characters that need encoding include:
!as%21#as%23$as%24&as%26'as%27(as%28)as%29*as%2A+as%2B,as%2C/as%2F:as%3A;as%3B=as%3D?as%3F@as%40[as%5B]as%5D
Query String Structure:
Parameters in a URL are added after a
?mark in a query string format.Each parameter is in the format
key=value.Multiple parameters are separated by an
&symbol.
Case Sensitivity:
URL paths are case-sensitive. However, the domain part of the URL is not. For instance,
Example.comandexample.comare equivalent, butexample.com/Pageandexample.com/pagemight lead to different pages.
Use of Hyphens and Underscores:
Hyphens (
-) and underscores (_) do not need encoding and are often used to improve readability of URLs.
Parameters for the Rent-Platform:
The Rent-Search feature allows users to find rental options. Here's how to use the parameters in the link structure:
Basic Link Structure: Start with
/rent?followed by your parameters.Coordinates (Coords):
Format:
Coords=latitude,longitudeExample:
Coords=52.52000659999999,13.404954Purpose: Use coordinates from a location picker to specify the geographic area for the search. The shop will then find the closest station that has relevant offers (considering also the date-parameters, brands and models selected)
Language Selection:
Format:
&language=language_codeSupported Languages (depending on client):
German:
de_deGerman (Swiss):
de_chEnglish:
en_ukPortuguese:
pt_ptSpanish:
es_esCzech:
cz_csSlovakian:
sk_sk
Example:
&language=de_de
Date Selection:
Format:
&DateStart=YYYY-MM-DD&DateStop=YYYY-MM-DDExample:
&DateStart=2024-03-19&DateStop=2024-03-20Note: Without this, the default is a 24-hour rental on two consecutive weekdays.
Time Selection:
Format:
&TimeStart=HH:MM&TimeStop=HH:MMExample:
&TimeStart=11:00&TimeStop=12:00
Brands:
Format:
&Brands=brand_namesExample:
&Brands=Jaguar,Land%20RoverPurpose: Specify car brands in the search.
Tariff Groups/ Models:
Format:
&TariffGroups=group_codesExample:
&TariffGroups=5F,5GPurpose: Specify the tariff group codes, which are defined in the Backoffice.
Booking Step:
Format:
&Step=numberOptions:
Step 0: Shows the “Select your Station” screen with a map.
Step 1: Available if geo-location is given. Selects the closest station with relevant offers considering the tariff group, dates, and geo-location.
Rent-Search Link Example:
/rent?Coords=52.52000659999999,13.404954&language=en_uk&DateStart=2024-03-19&DateStop=2024-03-20&TariffGroups=5F,5G&Step=0Parameters for the Subscription-Platform:
The Subscription-Search feature is for finding subscription offers. Here's how to use its parameters:
Basic Link Structure: Start with
/offers?followed by your parameters.Coordinates (Coords):
Format:
Coords=latitude,longitudeExample:
Coords=52.52000659999999,13.404954Purpose: Use coordinates from a location picker to specify the geographic area for the search.
Language Selection:
Supported Languages (depending on client):
German:
de_deGerman (Swiss):
de_chEnglish:
en_ukPortuguese:
pt_ptSpanish:
es_esCzech:
cz_csSlovakian:
sk_sk
Example:
&language=de_de
Date Start:
Format:
&DateStart=YYYY-MM-DDExample:
&DateStart=2024-03-19Purpose: Find offers starting after the chosen date.
Brands:
Format:
&Brands=brand_namesExample:
&Brands=Jaguar,Land%20RoverPurpose: Specify car brands in the search.
Vehicle models:
Format:
&Models=model_codesExample:
&Models=XC60,V90,EX60Purpose: Specify model name, which are defined in the Backoffice.
Subscription Search Link Example:
/offers?Coords=52.52000659999999,13.404954&language=de_de&DateStart=2024-03-19&Brands=Jaguar,Land%20Rover&&Models=XC60,V90,EX60