Last active
August 4, 2017 22:03
-
-
Save maplinkapi/5213955 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Cria endereço de saída | |
MLAddress *saida = [[MLAddress alloc] | |
initWithStreet:@"Rua Funchal" | |
andBuildingNumber:@"129" | |
andNeighborhood:@"Vila Olímpia" | |
andCity:@"São Paulo" | |
andState:@"SP" | |
andPostalCode:nil]; | |
MLGeocodedAddress *startAddress = [[MLAddressGeocoder geocodeWithToken:TOKEN address:saida]objectAtIndex:0]; | |
//Cria endereço de destino | |
MLAddress *destino = [[MLAddress alloc] | |
initWithStreet:@"R. Dr. Geraldo Campos Moreira" | |
andBuildingNumber:@"110" | |
andNeighborhood:@"Itaim Bibi" | |
andCity:@"São Paulo" | |
andState:@"SP" | |
andPostalCode:nil]; | |
MLGeocodedAddress *endAddress = [[MLAddressGeocoder geocodeWithToken:TOKEN address:destino]objectAtIndex:0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment