Title: Exception thrown by Code when only zipcode is set in request instead of address or location · Issue #48 · sinanselimoglu/geocoder-java · GitHub
Open Graph Title: Exception thrown by Code when only zipcode is set in request instead of address or location · Issue #48 · sinanselimoglu/geocoder-java
X Title: Exception thrown by Code when only zipcode is set in request instead of address or location · Issue #48 · sinanselimoglu/geocoder-java
Description: I am trying to get latitude and longitude with only zip codes. I encountered following issue and created a temporary fix for it. What steps will reproduce the problem? 1. In geocoder request don't pass address or location 2. Set Postal c...
Open Graph Description: I am trying to get latitude and longitude with only zip codes. I encountered following issue and created a temporary fix for it. What steps will reproduce the problem? 1. In geocoder request don't ...
X Description: I am trying to get latitude and longitude with only zip codes. I encountered following issue and created a temporary fix for it. What steps will reproduce the problem? 1. In geocoder request don...
Opengraph URL: https://github.com/sinanselimoglu/geocoder-java/issues/48
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception thrown by Code when only zipcode is set in request instead of address or location","articleBody":"```\nI am trying to get latitude and longitude with only zip codes. I encountered \nfollowing issue and created a temporary fix for it.\n\nWhat steps will reproduce the problem?\n1. In geocoder request don't pass address or location\n2. Set Postal code component and language only\n2.1 Java code throws exception with this code\nGeocoderRequest geocoderRequest = new \nGeocoderRequestBuilder().addComponent(GeocoderComponent.POSTAL_CODE, \n'31421').setLanguage(\"en\").getGeocoderRequest();\n\nException is: \"Address or location must be defined\"\n\n2.2 Whereas google api allows it\nhttps://maps.googleapis.com/maps/api/geocode/json?components=postal_code:31421\n\nWhat is the expected output? What do you see instead?\nAPi request should be parsed as valid request and google api should be called. \nI got exception \"Address or location must be defined\"\n\nWhat version of the product are you using? On what operating system?\n0.16\n\nPlease provide any additional information below.\nI have override the Geocoder.getURLQuery method, not to throw exception when \naddress or location both are not present. It should ideally check if not even \none address component is there then exception should occur\n\n```\n\nOriginal issue reported on code.google.com by `sandeep....@gmail.com` on 6 Jul 2014 at 12:25\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-05-04T23:13:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/48/geocoder-java/issues/48"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a1dd6e1b-18e1-f15e-7017-db26c535cfdd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFD8:399BC7:1205D18:18E1108:698F51C6 |
| html-safe-nonce | 56c0b8814f85eda5d80045072b3d0fc75d3ec093dc05691e7daf0f28ae4b2cd8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkQ4OjM5OUJDNzoxMjA1RDE4OjE4RTExMDg6Njk4RjUxQzYiLCJ2aXNpdG9yX2lkIjoiODc3NDYwNTExMzYxODU1MTIzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea862a4fa916ea28888621a6c5d8a186279479f13483ba3bd154a96c9d184e29 |
| hovercard-subject-tag | issue:73154185 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sinanselimoglu/geocoder-java/48/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c9d74de3d41f50da1ff820e9f7768342e08a787d2ba07dc8d3984aeb19d19982/sinanselimoglu/geocoder-java/issues/48 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c9d74de3d41f50da1ff820e9f7768342e08a787d2ba07dc8d3984aeb19d19982/sinanselimoglu/geocoder-java/issues/48 |
| og:image:alt | I am trying to get latitude and longitude with only zip codes. I encountered following issue and created a temporary fix for it. What steps will reproduce the problem? 1. In geocoder request don't ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56b76ab55fc1aaa874bbbc88f5793e7d72ba4b8f5d8181d7ee2475ab4eddf816 |
| turbo-cache-control | no-preview |
| go-import | github.com/sinanselimoglu/geocoder-java git https://github.com/sinanselimoglu/geocoder-java.git |
| octolytics-dimension-user_id | 6927333 |
| octolytics-dimension-user_login | sinanselimoglu |
| octolytics-dimension-repository_id | 35065444 |
| octolytics-dimension-repository_nwo | sinanselimoglu/geocoder-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35065444 |
| octolytics-dimension-repository_network_root_nwo | sinanselimoglu/geocoder-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd0835cb24dcc013b26bf23ea516b18c66e9faa1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width