12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /*
- * Copyright (C) 2014 Daniel 'grindhold' Brendle
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published
- * by the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- * Authors:
- * Daniel 'grindhold' Brendle <grindhold@skarphed.org>
- */
- package gominatim
- import (
- "strings"
- )
- var (
- server string
- )
- type Address struct {
- House string `json:"house_number"`
- Road string `json:"road"`
- Village string `json:"village"`
- Suburb string `json:"suburb"`
- Town string `json:"town"`
- City string `json:"city"`
- State string `json:"state"`
- County string `json:"state_district"`
- Postcode string `json:"postcode"`
- Country string `json:"country"`
- CountryCode string `json:"country_code"`
- }
- func SetServer(srv string) {
- srv = strings.TrimRight(srv, "/")
- server = srv
- }
|