Wiki source code of address_new.php
Last modified by YellowFox_RD on 2025/01/23 09:12
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | (% class="box" %) |
![]() |
2.1 | 2 | ((( |
3 | Table of Contents | ||
4 | ))) | ||
5 | |||
![]() |
1.1 | 6 | {{toc/}} |
7 | |||
![]() |
2.1 | 8 | = address_new.php = |
9 | |||
10 | Creates a new customer address. | ||
11 | |||
12 | = Description = | ||
13 | |||
14 | (% class="blue mark" %)**POST**(%%)** address_new.php?company**=//COMPANY_RTIKEY//**&import**=//IMPORT_RTIKEY//**&name1**=//YellowFox%20GmbH//**&street**=//Hauptstraße//**&number**=//1a//**&zipcode**=//01257//**&city**=//Kesselsdorf//**&country**=//D//**&posdesc**=Y//ellowFox%20Headquarter//**&map**=//1//&**lat**=//51.0374//&**lon**=//13.587813// | ||
15 | |||
![]() |
1.1 | 16 | = Parameter = |
17 | |||
![]() |
2.1 | 18 | |=Parameter|=Description|=Typ|=Note|=Mandatory |
19 | |company|RTI company key|string| |yes | ||
20 | |import|RTI import key|string| |yes | ||
21 | |name1|name 1|string|max. 100 characters|yes | ||
22 | |name2|name 2|string|max. 100 characters|no | ||
23 | |street|streetname|string|max. 100 characters|no | ||
24 | |number|street number|string|max. 10 characters|no | ||
25 | |zipcode|zipcode|string|max. 100 characters|no | ||
26 | |city|cityname|string|max. 100 characters|no | ||
27 | |country|countrytag|string|max. 3 characters|no | ||
28 | |map|map view active|int|0 = invisible, 1 = visible (geocoordinates must be available)|no | ||
29 | |lat|latitude|float|-90 to +90 in format WGS84|no | ||
30 | |lon|longitude|float|-180 to +180 in format WGS84|no | ||
31 | |posdesc|position description|string|max. 100 characters, displayed as text on the map and in position lists|no | ||
32 | |comment|comment|string|max. 2000 characters|no | ||
33 | |phone|phonenumber|string|max. 100 characters|no | ||
34 | |email|e-mail|string|max. 100 characters|no | ||
35 | |||
36 | = Return = | ||
37 | |||
38 | A **string** is returned. If successful, "**OK**" is returned as the response. Otherwise an "(% class="error" %)**ERROR:Beschreibung**(%%)" is returned. | ||
39 | |||
40 | = Example call = | ||
41 | |||
42 | **create address** | ||
![]() |
1.1 | 43 | {{code language="java"}}https://map.yellowfox.de/rti/address_new.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&name1=YellowFox%20GmbH&posdesc=YellowFox%20GmbH&street=Am%20Wüsteberg&number=3&zipcode=01723&city=Kesselsdorf&country=D&map=1&lat=51.036423&lon=13.598794{{/code}} |
44 | |||
![]() |
2.1 | 45 | |
46 | \\ |