Skip to content

Instantly share code, notes, and snippets.

View maplink-master's full-sized avatar

Maplink maplink-master

  • MapLink
  • São Paulo
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<getInfoResponse xmlns="http://webservices.maplink2.com.br">
<getInfoResult>
<pageCount>1</pageCount>
<recordCount>1</recordCount>
<totalRecord>1</totalRecord>
<time>0</time>
<info>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:web="http://webservices.maplink2.com.br">
<soap:Header/>
<soap:Body>
<web:getInfo>
<web:city>
<web:name>São Paulo</web:name>
<web:state>SP</web:state>
</web:city>
<web:resultRange>
<web:pageIndex>1</web:pageIndex>
var divIdName = "divMap";
var map = new MMap2(divIdName);
var point = new MPoint(-46.6520066, -23.5650127);
var zoomLevel = 15;
map.setCenter(point, zoomLevel);
var radiusInMeters = 500 // 500 meters
var lineProperties = new MPolylineProperties();
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.maplink2.com.br">
<soapenv:Header/>
<soapenv:Body>
<web:findDistrict>
<web:district>
<web:city>
<web:name>São Paulo</web:name>
<web:state>SP</web:state>
</web:city>
<web:name>Consolação</web:name>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<findDistrictResponse xmlns="http://webservices.maplink2.com.br">
<findDistrictResult>
<recordCount>1</recordCount>
<pageCount>1</pageCount>
<districtLocation>
<DistrictLocation>
<district>
<city>
const string token = "TOKEN";
var district = new District
{
name = "Consolação",
city = new City { name = "São Paulo", state = "SP" }
};
var resultRange = new ResultRange { pageIndex = 1, recordsPerPage = 5 };
final String TOKEN = "TOKEN";
City city = new City();
city.setName("São Paulo");
city.setState("SP");
District district = new District();
district.setCity(city);
district.setName("CONSOLAÇÃO");
final String TOKEN = "TOKEN";
City city = new City();
city.setName("Sao Paulo");
city.setState("SP");
Address address = new Address();
address.setStreet("Avenida Paulista");
address.setHouseNumber("1000");
address.setCity(city);
final String TOKEN = "TOKEN";
City city = new City();
city.setName("Sao Paulo");
city.setState("SP");
ResultRange resultRange = new ResultRange();
resultRange.setPageIndex(1);
resultRange.setRecordsPerPage(10);